function rotor_admin_form in Rotor Banner 5.7
Same name and namespace in other branches
- 5 rotor.module \rotor_admin_form()
- 6 rotor.module \rotor_admin_form()
Admin settings form page.
2 string references to 'rotor_admin_form'
- rotor_admin_form_submit in ./
rotor.module - Admin settings form submit function
- rotor_menu in ./
rotor.module - Menu Hook
File
- ./
rotor.module, line 107 - A rotor banner consists in a set of images that will be changing. This module is made using jquery.
Code
function rotor_admin_form() {
$form['max_items'] = array(
'#type' => 'textfield',
'#title' => t('Max nodes'),
'#default_value' => variable_get('rotor_max_items', 3),
'#rows' => 1,
'#size' => 2,
'#description' => t('Define the maximun number of nodes to present in the rotor block.'),
);
$form['time'] = array(
'#type' => 'textfield',
'#title' => t('Time'),
'#default_value' => variable_get('rotor_seconds', 10),
'#rows' => 1,
'#size' => 2,
'#description' => t('The time in seconds that will be shown every rotor item before change to the next one.'),
);
$form['show_tab'] = array(
'#type' => 'checkbox',
'#title' => t('Enable tabs'),
'#default_value' => variable_get('rotor_show_tabs', TRUE),
'#description' => t('Shows/Hide the item tabs in the block'),
);
$form['group_tabs'] = array(
'#type' => 'radios',
'#title' => t('Group tabs'),
'#default_value' => variable_get('rotor_group_tabs', ROTOR_GROUP_TABS),
'#options' => array(
ROTOR_GROUP_TABS => t('Group tabs'),
ROTOR_DONT_GROUP_TABS => t('Each tab with item'),
),
'#description' => t('If tabs are grups this will be presented all the tabs toguether otherwise each tab will be with each item.'),
);
$form['#suffix'] = theme('rotor_admin_list', rotor_get_all_items());
return system_settings_form($form);
}