You are here

function ng_lightbox_settings in NG Lightbox 7

Form callback.

1 string reference to 'ng_lightbox_settings'
ng_lightbox_menu in ./ng_lightbox.module
Implements hook_menu().

File

./ng_lightbox.admin.inc, line 11
Admin settings for NG Lightbox.

Code

function ng_lightbox_settings() {
  $form['container']['ng_lightbox_patterns'] = array(
    '#type' => 'textarea',
    '#default_value' => variable_get('ng_lightbox_patterns', ''),
    '#description' => t('New line separated paths'),
  );
  $form['container']['ng_lightbox_skip_admin_paths'] = array(
    '#title' => t('Skip all admin paths'),
    '#type' => 'checkbox',
    '#default_value' => variable_get('ng_lightbox_skip_admin_paths', TRUE),
    '#description' => t('This will exclude all admin pages from the lightbox. If you want some paths, see hook_ng_lightbox_ajax_path_alter().'),
  );
  $form['container']['ng_lightbox_disable_css'] = array(
    '#title' => t('Disable CSS'),
    '#type' => 'checkbox',
    '#default_value' => variable_get('ng_lightbox_disable_css', FALSE),
    '#description' => t('Disable the default CSS provided by NG Lightbox.'),
  );
  return system_settings_form($form);
}