You are here

function popups_admin_settings in Popups API (Ajax Dialogs) 6

Same name and namespace in other branches
  1. 5 popups.module \popups_admin_settings()
  2. 6.2 popups.module \popups_admin_settings()
  3. 7 popups.module \popups_admin_settings()

Form for the Popups Settings page.

1 string reference to 'popups_admin_settings'
popups_menu in ./popups.module
Implementation of hook_menu().

File

./popups.module, line 267
This module provides a hook_popups for links to be openned in an Ajax Popup Dialog.

Code

function popups_admin_settings() {
  drupal_set_title("Popups Settings");
  $form = array();
  $form['popups_always_scan'] = array(
    '#type' => 'checkbox',
    '#title' => t('Scan all pages for popup links.'),
    '#default_value' => variable_get('popups_always_scan', 0),
  );
  $form['popups_popup_final_message'] = array(
    '#type' => 'checkbox',
    '#title' => t('Do NOT auto-close final message.'),
    '#default_value' => variable_get('popups_popup_final_message', 1),
  );
  return system_settings_form($form);
}