function views_ajax_get_admin_form in Views Ajax Get 7
Menu callback for admin/config/system/views_ajax_get.
1 string reference to 'views_ajax_get_admin_form'
- views_ajax_get_menu in ./
views_ajax_get.module - Implements hook_menu().
File
- ./
views_ajax_get.admin.inc, line 11 - Provide the admin form to configure views_ajax_get.
Code
function views_ajax_get_admin_form() {
$views = views_get_all_views();
$form['views_ajax_get_exemptions'] = array(
'#type' => 'checkboxes',
'#title' => t('Exempt the following views from using GET ajax.'),
'#description' => t('Use this if you are having issues with certain views using GET ajax.
(They will revert to using POST).
Note this will only apply to Views that have ajax enabled.'),
'#options' => drupal_map_assoc(array_keys($views)),
'#default_value' => variable_get('views_ajax_get_exemptions', array()),
);
return system_settings_form($form);
}