You are here

function shadowbox_automatic_settings in Shadowbox 7.3

Same name and namespace in other branches
  1. 5.2 shadowbox.module \shadowbox_automatic_settings()
  2. 6.4 shadowbox.admin.inc \shadowbox_automatic_settings()
  3. 6.2 shadowbox.module \shadowbox_automatic_settings()
  4. 6.3 shadowbox.admin.inc \shadowbox_automatic_settings()
  5. 7.4 shadowbox.admin.inc \shadowbox_automatic_settings()

FAPI definition for the Shadowbox automatic image handling settings form.

See also

shadowbox_global_settings_validate()

1 string reference to 'shadowbox_automatic_settings'
shadowbox_menu in ./shadowbox.module
Implements hook_menu().

File

./shadowbox.admin.inc, line 401
Administrative interface for the Shadowbox module.

Code

function shadowbox_automatic_settings() {
  $form['shadowbox_auto_enable_all_images'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable for all image links'),
    '#description' => t('Enable this option to automatically add the <code>rel="shadowbox"</code> attribute to all links pointing to an image file.'),
    '#default_value' => variable_get('shadowbox_auto_enable_all_images', 0),
  );
  $form['shadowbox_auto_gallery'] = array(
    '#type' => 'checkbox',
    '#title' => t('Group images as a shadowbox gallery'),
    '#description' => t('Enable this options to open all images in a shadowbox gallery rather than individually.'),
    '#default_value' => variable_get('shadowbox_auto_gallery', 0),
  );
  $form['shadowbox_enable_globally'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable shadowbox globally'),
    '#description' => t('Add shadowbox library on all nodes.'),
    '#default_value' => variable_get('shadowbox_enable_globally', TRUE),
  );
  return system_settings_form($form);
}