function dynamic_banner_settings in Dynamic Banner 8.x
Same name and namespace in other branches
- 6 includes/callbacks.inc \dynamic_banner_settings()
- 7.2 dynamic_banner.module \dynamic_banner_settings()
- 7 includes/callbacks.inc \dynamic_banner_settings()
A page that will display a form for changing how dynamic banner will function.
1 string reference to 'dynamic_banner_settings'
- dynamic_banner_menu in ./
dynamic_banner.module - Implements hook_menu(). it is key to note here access arguments is referring to permissions
File
- ./
dynamic_banner.module, line 939 - Distributed under GNU GPL version 3
Code
function dynamic_banner_settings() {
$form = array();
$form['dynamic_banner_display_setting'] = array(
'#type' => 'radios',
'#title' => t('Display Setting'),
'#options' => drupal_map_assoc(array(
t('url'),
t('text'),
t('urltext'),
t('urllink'),
)),
'#default_value' => variable_get('dynamic_banner_display_setting', BANNER_DEFAULT_OUTPUT),
'#description' => t('What display pattern do you want the module to follow in the template file?'),
'#required' => TRUE,
);
$form['dynamic_banner_display_errors'] = array(
'#type' => 'radios',
'#title' => t('Debug?'),
'#options' => array(
0 => t('Disabled'),
1 => t('Enabled'),
),
'#default_value' => variable_get('dynamic_banner_display_errors', 0),
'#description' => t('If dynamic banner can not find a banner for the current page do you want it to display an error?'),
'#required' => TRUE,
);
$form['dynamic_banner_file_save_path'] = array(
'#type' => 'textfield',
'#title' => t('Image save path'),
'#default_value' => variable_get('dynamic_banner_file_save_path', BANNER_DEFAULT_SAVE_LOCATION),
'#description' => t('This will be the path all banners get saved to when using the upload utility. \'public://\' is your sites files folder.
This setting does not apply for old uploaded images.'),
'#required' => TRUE,
);
return system_settings_form($form);
}