You are here

function sms_sendtophone_admin_overview in SMS Framework 7

Same name and namespace in other branches
  1. 5 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_admin_overview()
  2. 6.2 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_admin_overview()
  3. 6 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_admin_overview()

Form constructor for the Send To Phone Administration page.

1 string reference to 'sms_sendtophone_admin_overview'
sms_sendtophone_menu in modules/sms_sendtophone/sms_sendtophone.module
Implements hook_menu().

File

modules/sms_sendtophone/sms_sendtophone.module, line 48
Provides various tools for sending bits of information via SMS.

Code

function sms_sendtophone_admin_overview($form, &$form_state) {
  $entire_types = node_type_get_types();
  $types = array();
  foreach ($entire_types as $type) {
    $types[$type->type] = $type->name;
  }
  $form['sms_sendtophone_content_types'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Content types'),
    '#default_value' => variable_get('sms_sendtophone_content_types', array()),
    '#options' => $types,
    '#description' => t('Which content types to show the Send To Phone feature.'),
  );
  return system_settings_form($form);
}