function simple_dialog_settings_form in Simple Dialog 7
1 string reference to 'simple_dialog_settings_form'
- simple_dialog_menu in ./
simple_dialog.module - Implements hook_menu().
File
- ./
simple_dialog.module, line 148
Code
function simple_dialog_settings_form($form, &$form_state) {
$form = array();
$form['javascript']['simple_dialog_js_all'] = array(
'#type' => 'checkbox',
'#title' => t('Add simple dialog javscript files to all pages'),
'#description' => t("This setting is for people who want to limit which pages the simple dialog javscript files are added to. If you disable this option, you will have to add the js files manually (using the function simple_dialog_add_js() ) to every page that you want to be able to invoke the simple dialog using the 'simple-dialog' class. If you are adding simple dialog links to the page using theme('simple_dialog'...) the necessary javascript is added within those functions so you should be okay.'"),
'#default_value' => variable_get('simple_dialog_js_all', 1),
);
$form['simple_dialog_classes'] = array(
'#type' => 'textfield',
'#title' => t('Additional Classes'),
'#description' => t("Supply a list of classes, separated by spaces, that can be used to launch the dialog. Do not use any leading or trailing spaces."),
'#default_value' => variable_get('simple_dialog_classes', ''),
);
$form['simple_dialog_defaults'] = array(
'#type' => 'textfield',
'#title' => t('Default Dialog Settings'),
'#description' => t('Provide default settings for the simple dialog. The defaults should be formatted the same as you would in the "rel" attribute of a simple dialog link. See the <a href="/admin/help/simple_dialog">help page</a> under "HTML Implementation" for more information.'),
'#default_value' => variable_get('simple_dialog_defaults', 'width:300;height:auto;position:[center,60]'),
);
$form['simple_dialog_default_target_selector'] = array(
'#type' => 'textfield',
'#title' => t('Default Target Selector'),
'#description' => t('Provide a default html element id for the target page (the page that will be pulled into the dialog). This value will be used if no "name" attribute is provided in a simple dialog link.'),
'#default_value' => variable_get('simple_dialog_default_target_selector', 'content'),
);
$form['simple_dialog_default_dialog_title'] = array(
'#type' => 'textfield',
'#title' => t('Default Dialog Title'),
'#description' => t('Provide a default dialog title. This value will be used if no "title" attribute is provided in a simple dialog link.'),
'#default_value' => variable_get('simple_dialog_default_dialog_title', ''),
);
return system_settings_form($form);
}