You are here

function nodeorder_admin in Node Order 5

Same name and namespace in other branches
  1. 6 nodeorder.module \nodeorder_admin()
  2. 7 includes/nodeorder.admin.inc \nodeorder_admin()

Form for Admin Settings

1 string reference to 'nodeorder_admin'
nodeorder_menu in ./nodeorder.module
Implementation of hook_menu().

File

./nodeorder.module, line 647

Code

function nodeorder_admin() {
  $form['nodeorder_show_links_on_node'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display ordering links on each node'),
    '#description' => t('If enabled, links will be added to each node that allow you to move the node up or down in each of its categories.'),
    '#default_value' => variable_get('nodeorder_show_links_on_node', 1),
  );
  $form['nodeorder_link_to_ordering_page'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display link to the ordering page'),
    '#description' => t('If enabled, a link will appear on all nodeorder/TID 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_minimal_ordering_text'] = array(
    '#type' => 'checkbox',
    '#title' => t('Only show titles when ordering nodes'),
    '#description' => t('If enabled, only titles will be shown when ordering nodes within a category.  This allows you to see more nodes in a smaller amount of space.  It has no effect on the display of the same nodes in any other context.'),
    '#default_value' => variable_get('nodeorder_minimal_ordering_text', 0),
  );
  return system_settings_form($form);
}