function sms_admin_settings_form in SMS Framework 6
1 string reference to 'sms_admin_settings_form'
- sms_menu in ./
sms.module - Implementation of hook_menu().
File
- ./
sms.admin.inc, line 104 - SMS Framework core module: Admin settings form functions
Code
function sms_admin_settings_form(&$form_state) {
$form['log_failed_messages'] = array(
'#type' => 'checkbox',
'#title' => 'Log messages that fail to send',
'#default_value' => variable_get('sms_log_failed_messages', TRUE),
);
$form['send_form'] = array(
'#type' => 'fieldset',
'#title' => 'Send form',
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$validation_enabled = function_exists('sms_valid_get_rulesets_for_form');
$form['send_form']['send_form_include_ruleset_selector'] = array(
'#type' => 'checkbox',
'#title' => 'Display ruleset selector on send form',
'#default_value' => variable_get('sms_send_form_include_ruleset_selector', TRUE),
'#disabled' => !$validation_enabled,
'#description' => !$validation_enabled ? 'You must enable the SMS Framework Validation module to access this feature.' : NULL,
);
$form['send_form']['send_form_ruleset_selector_title'] = array(
'#type' => 'textfield',
'#title' => 'Ruleset selector title',
'#maxlength' => 100,
'#default_value' => variable_get('sms_send_form_ruleset_selector_title', 'Country'),
'#disabled' => !$validation_enabled,
'#description' => !$validation_enabled ? 'You must enable the SMS Framework Validation module to access this feature.' : NULL,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
return $form;
}