function sms_sendtophone_menu in SMS Framework 5
Same name and namespace in other branches
- 6.2 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_menu()
- 6 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_menu()
- 7 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_menu()
Implementation of hook_menu().
File
- modules/
sms_sendtophone/ sms_sendtophone.module, line 6
Code
function sms_sendtophone_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'sms/sendtophone',
'title' => t('Send to phone'),
'callback' => 'sms_sendtophone_page',
'access' => user_access('access content'),
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'sms/sendtophone/thickbox',
'title' => t('Send to phone'),
'callback' => 'sms_sendtophone_thickbox',
'access' => user_access('access content'),
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'admin/smsframework/sendtophone',
'title' => t('Send to phone'),
'description' => t('Configure send to phone functinality.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'sms_sendtophone_admin_overview',
),
'access' => user_access('administer smsframework'),
);
}
drupal_add_css(drupal_get_path('module', 'sms_sendtophone') . '/sms_sendtophone.css');
if (module_exists('thickbox')) {
drupal_add_js(drupal_get_path('module', 'sms_sendtophone') . '/sms_sendtophone.js');
}
return $items;
}