function sms_sendtophone_admin_overview in SMS Framework 6
Same name and namespace in other branches
- 5 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_admin_overview()
- 6.2 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_admin_overview()
- 7 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_admin_overview()
Administration page for the Send To Phone module.
1 string reference to 'sms_sendtophone_admin_overview'
- sms_sendtophone_menu in modules/
sms_sendtophone/ sms_sendtophone.module - Implementation of hook_menu().
File
- modules/
sms_sendtophone/ sms_sendtophone.module, line 50
Code
function sms_sendtophone_admin_overview() {
$entire_types = node_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);
}