function prev_next_views_settings in Previous/Next API 7
Same name and namespace in other branches
- 6 prev_next_views.admin.inc \prev_next_views_settings()
- 7.2 prev_next_views.admin.inc \prev_next_views_settings()
Menu callback for the prev_next_views module settings form.
1 string reference to 'prev_next_views_settings'
- prev_next_views_menu in ./
prev_next_views.module - Implements hook_menu().
File
- ./
prev_next_views.admin.inc, line 15 - Contains the administrative functions of the prev_next_views module.
Code
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);
}