function twitter_bootstrap_modal_admin in Twitter Bootstrap Modal 7.3
Same name and namespace in other branches
- 7 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 61 - 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"'),
);
$form['jquery_ajax_load_trigger_modal_TB'] = array(
'#type' => 'textarea',
'#title' => t('Valid jQuery Classes/IDs to tell TB Modal to load with full modal code (One per line)'),
'#default_value' => variable_get('jquery_ajax_load_trigger_modal_TB', '.tb_modal' . "\n"),
'#description' => t('Specify the class/ID of links to load TB Modal with full modal HTML wrapper, one per line. For example by providing ".tb_modal" will load full modal HTML in any link with class="tb_modal". If not defined remote call must return modal HTML code.'),
);
return system_settings_form($form);
}