You are here

function shadowbox_automatic_settings in Shadowbox 6.2

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.3 shadowbox.admin.inc \shadowbox_automatic_settings()
  4. 7.4 shadowbox.admin.inc \shadowbox_automatic_settings()
  5. 7.3 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
Implementation of hook_menu().

File

./shadowbox.module, line 439
Shadowbox, a JavaScript media viewer application for displaying content in a modal dialogue.

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. <strong>Warning:</strong> If enabled, this overrides the gallery settings for node display setting and views format setting.'),
    '#default_value' => variable_get('shadowbox_auto_gallery', 0),
  );
  return system_settings_form($form);
}