You are here

function cleanpager_admin_settings in Clean Pagination 5

Same name and namespace in other branches
  1. 6 cleanpager.module \cleanpager_admin_settings()
  2. 7 cleanpager.module \cleanpager_admin_settings()

Defines admin settings form

1 string reference to 'cleanpager_admin_settings'
cleanpager_menu in ./cleanpager.module
Implementation of hook_menu()

File

./cleanpager.module, line 36

Code

function cleanpager_admin_settings() {
  $form['cleanpager_pages'] = array(
    '#title' => 'Pages',
    '#description' => 'Set which pages to apply clean pagination to. Put each page on a new line and use the full page name, without a leading slash. Probably the easiest way to test this out to to create a view with only 1 or 2 nodes per page and add the URL to this list. An example how you would type a page is "admin/content/node".',
    '#type' => 'textarea',
    '#rows' => '7',
    '#default_value' => variable_get('cleanpager_pages', ''),
  );
  $form['cleanpager_use_seo_links'] = array(
    '#title' => 'Use SEO Links',
    '#description' => 'Using SEO links will add the page URL to the pagination links, and then will remove them via jquery once the page is loaded.',
    '#type' => 'checkbox',
    '#default_value' => variable_get('cleanpager_use_seo_links', ''),
  );
  return system_settings_form($form);
}