function twitter_bootstrap_modal_admin in Twitter Bootstrap Modal 7
Same name and namespace in other branches
- 7.3 twitter_bootstrap_modal.module \twitter_bootstrap_modal_admin()
Callback function for admin setting.
1 string reference to 'twitter_bootstrap_modal_admin'
- twitter_bootstrap_modal_menu in ./
twitter_bootstrap_modal.module - Implementation of hook_menu().
File
- ./
twitter_bootstrap_modal.module, line 52 - Generates a Twitter Bootstrap Modal.
Code
function twitter_bootstrap_modal_admin() {
// This module will not work if used in overlay paths such as
// admin/* , node/add etc if user has overlay access.
$form['jquery_ajax_load_trigger_TB'] = array(
'#type' => 'textarea',
'#title' => t('Valid jQuery Classes/IDs to trigger TB Modal via Ajax (One per line)'),
'#default_value' => variable_get('jquery_ajax_load_trigger_TB', '.twitter_bootstrap_modal' . "\n"),
'#description' => t('Specify the class/ID of links to convert that link TB Modal, one per line. For example by providing ".twitter_bootstrap_modal" will convert any link with class="twitter_bootstrap_modal"'),
);
return system_settings_form($form);
}