function nodeorder_admin in Node Order 7
Same name and namespace in other branches
- 5 nodeorder.module \nodeorder_admin()
- 6 nodeorder.module \nodeorder_admin()
Form for Admin Settings
1 string reference to 'nodeorder_admin'
- nodeorder_menu in ./
nodeorder.module - Implements hook_menu().
File
- includes/
nodeorder.admin.inc, line 11 - Admin page callbacks for the nodeorder module.
Code
function nodeorder_admin($form, &$form_state) {
$form['nodeorder_show_links'] = array(
'#type' => 'fieldset',
'#title' => t('Display ordering links'),
'#description' => t('Choose whether to show ordering links. Links can be shown for all categories associated to a node or for the currently active category. It is also possible to not show the ordering links at all.'),
);
$form['nodeorder_show_links']['nodeorder_show_links_on_node'] = array(
'#type' => 'radios',
'#title' => t('Choose how to display ordering links'),
'#default_value' => variable_get('nodeorder_show_links_on_node', 1),
'#description' => 'When displaying links based on the context, they will only be shown on taxonomy and nodeorder pages.',
'#options' => array(
t('Don\'t display ordering links'),
t('Display ordering links for all categories'),
t('Display ordering links based on the active category'),
),
);
$form['nodeorder_link_to_ordering_page'] = array(
'#type' => 'checkbox',
'#title' => t('Display link to the ordering page'),
'#description' => t('If enabled, a tab will appear on all <em>nodeorder/term/%</em> and <em>taxonomy/term/%</em> pages that quickly allows administrators to get to the node ordering administration page for the term.'),
'#default_value' => variable_get('nodeorder_link_to_ordering_page', 1),
);
$form['nodeorder_link_to_ordering_page_taxonomy_admin'] = array(
'#type' => 'checkbox',
'#title' => t('Display link to the ordering page on taxonomy administration page'),
'#description' => t('If enabled, a tab will appear on <em>admin/content/taxonomy/%</em> pages that quickly allows administrators to get to the node ordering administration page for the term.'),
'#default_value' => variable_get('nodeorder_link_to_ordering_page_taxonomy_admin', 1),
);
$form['nodeorder_override_taxonomy_page'] = array(
'#type' => 'checkbox',
'#title' => t('Override the default taxonomy page with one from nodeorder'),
'#description' => t('Disabling this will allow the panels module to override taxonomy pages instead. See <a href="https://www.drupal.org/node/1713048">this issue</a> for more information. You will have to clear caches for the change to take effect.'),
'#default_value' => variable_get('nodeorder_override_taxonomy_page', 1),
);
return system_settings_form($form);
}