You are here

prev_next_views.admin.inc in Previous/Next API 7.2

Same filename and directory in other branches
  1. 6 prev_next_views.admin.inc
  2. 7 prev_next_views.admin.inc

Contains the administrative functions of the prev_next_views module.

File

prev_next_views.admin.inc
View source
<?php

/**
 * @file
 * Contains the administrative functions of the prev_next_views module.
 *
 * @ingroup print
 */

/**
 * Menu callback for the prev_next_views module settings form.
 *
 * @ingroup forms
 */
function prev_next_views_settings() {
  $options = array();
  foreach (views_get_all_views() as $key => $view) {
    $options[$key] = $view->name;
  }
  $form['prev_next_views_enabled'] = array(
    '#type' => 'select',
    '#title' => t('Enable the Prev/Next API for the following views'),
    '#default_value' => variable_get('prev_next_views_enabled', array()),
    '#options' => $options,
    '#multiple' => TRUE,
  );
  return system_settings_form($form);
}

Functions

Namesort descending Description
prev_next_views_settings Menu callback for the prev_next_views module settings form.