function addanother_admin in Add Another 7.2
Same name and namespace in other branches
- 5 addanother.module \addanother_admin()
- 6 addanother.module \addanother_admin()
- 7 addanother.module \addanother_admin()
This function sets up the administrative settings page.
1 string reference to 'addanother_admin'
- addanother_menu in ./
addanother.module - Implements hook_menu().
File
- ./
addanother.module, line 106 - The main file for the addanother module.
Code
function addanother_admin() {
$form['addanother_display'] = array(
'#type' => 'fieldset',
'#title' => t('Default settings for newly created content types'),
);
$form['addanother_display']['addanother_default_button'] = array(
'#type' => 'checkbox',
'#title' => t('Enable <i>Display Add another button on node add form</i> for new content types.'),
'#default_value' => variable_get('addanother_default_button', TRUE),
);
$form['addanother_display']['addanother_default_message'] = array(
'#type' => 'checkbox',
'#title' => t('Enable <i>Display the Add another message after node creation</i> for new content types.'),
'#default_value' => variable_get('addanother_default_message', TRUE),
);
$form['addanother_display']['addanother_default_tab'] = array(
'#type' => 'checkbox',
'#title' => t('Enable <i>Display the Add another tab</i> for new content types.'),
'#default_value' => variable_get('addanother_default_tab', TRUE),
);
$form['addanother_display']['addanother_default_tab_edit'] = array(
'#type' => 'checkbox',
'#title' => t('Enable <i>Also display the Add another tab on edit page</i> for new content types.'),
'#default_value' => variable_get('addanother_default_tab_edit', TRUE),
);
return system_settings_form($form);
}