function addanother_admin in Add Another 5
Same name and namespace in other branches
- 6 addanother.module \addanother_admin()
- 7.2 addanother.module \addanother_admin()
- 7 addanother.module \addanother_admin()
This function sets up the admin/settings/addanother settings page.
1 string reference to 'addanother_admin'
- addanother_menu in ./
addanother.module - Implementation of hook_menu().
File
- ./
addanother.module, line 52 - Presents users with an option to create another node of the same type after a node is added.
Code
function addanother_admin() {
$form['addanother_nodetypes'] = array(
'#type' => 'checkboxes',
'#title' => t('Enable Add Another for these content types'),
'#options' => node_get_types('names'),
'#default_value' => variable_get('addanother_nodetypes', array()),
'#description' => 'An <em>Add Another</em> message will be shown after creating these content types',
);
return system_settings_form($form);
}