- Модуль: sender
- Путь к файлу: ~/bitrix/modules/sender/lib/integration/messageservice/sms/messagesms.php
- Класс: Bitrix\Sender\Integration\MessageService\Sms\MessageSms
- Вызов: MessageSms::setConfigurationOptions
protected function setConfigurationOptions()
{
if ($this->configuration->hasOptions())
{
return;
}
$this->configuration->setArrayOptions(array(
array(
'type' => 'string',
'code' => 'SENDER',
'name' => Loc::getMessage('SENDER_INTEGRATION_SMS_MESSAGE_CONFIG_SENDER'),
'required' => true,
'show_in_list' => true,
'readonly_view' => function($value)
{
return Service::getFormattedOutputNumber($value);
},
),
array(
'type' => 'text',
'code' => 'MESSAGE_TEXT',
'name' => Loc::getMessage('SENDER_INTEGRATION_SMS_MESSAGE_CONFIG_MESSAGE_TEXT'),
'required' => true,
),
));
TimeLimiter::prepareMessageConfiguration($this->configuration);
}