You are here

function fancybox_admin_settings in fancyBox 5

The default fancybox settings page.

1 string reference to 'fancybox_admin_settings'
fancybox_menu in ./fancybox.module
Implementation of hook_menu().

File

./fancybox.module, line 67

Code

function fancybox_admin_settings() {
  $form['fancybox']['fancybox_class_id'] = array(
    '#type' => 'textfield',
    '#title' => t('Css classe or id'),
    '#description' => t('The css class or ID to consider for fancybox. Fancybox will insert this value after the tag a.<br />Example: insert .myimageclass and fancybox will output a.image. Your markup has to be like this: &lt;a ...&gt&lt;img class="myimageclass" ... &gt;.'),
    '#default_value' => variable_get('fancybox_class_id', ''),
  );
  $form['fancybox']['fancybox_hideoncontentclick'] = array(
    '#type' => 'textfield',
    '#title' => t('Hide on content click'),
    '#description' => t('Hides FancyBox when cliked on opened item (true or false).'),
    '#default_value' => variable_get('fancybox_hideoncontentclick', 'true'),
  );
  $form['fancybox']['fancybox_padding'] = array(
    '#type' => 'textfield',
    '#title' => t('Fancybox padding'),
    '#default_value' => variable_get('fancybox_padding', '0'),
  );
  $form['fancybox']['fancybox_zoomopacity'] = array(
    '#type' => 'textfield',
    '#title' => t('Fancybox zoom opacity'),
    '#default_value' => variable_get('fancybox_zoomopacity', 'true'),
  );
  $form['fancybox']['fancybox_zoomspeedin'] = array(
    '#type' => 'textfield',
    '#title' => t('Fancybox zoom speed in'),
    '#default_value' => variable_get('fancybox_zoomspeedin', '300'),
  );
  $form['fancybox']['fancybox_zoomspeedout'] = array(
    '#type' => 'textfield',
    '#title' => t('Fancybox zoom speed out'),
    '#default_value' => variable_get('fancybox_zoomspeedout', '300'),
  );
  $form['fancybox']['fancybox_zoomspeedchange'] = array(
    '#type' => 'textfield',
    '#title' => t('Fancybox zoom speed change'),
    '#description' => t('Speed in miliseconds of the animation when changing gallery items.'),
    '#default_value' => variable_get('fancybox_zoomspeedchange', '300'),
  );
  $form['fancybox']['fancybox_easingin'] = array(
    '#type' => 'textfield',
    '#title' => t('Fancybox zoom speed change'),
    '#description' => t('Easing used for animations. Insert easeOutBack or none.'),
    '#default_value' => variable_get('fancybox_easingin', 'easeOutBack'),
  );
  $form['fancybox']['fancybox_easingout'] = array(
    '#type' => 'textfield',
    '#title' => t('Fancybox zoom speed change'),
    '#description' => t('Easing used for animations. Insert easeInBack or none.'),
    '#default_value' => variable_get('fancybox_easingout', 'easeInBack'),
  );
  $form['fancybox']['fancybox_overlayshow'] = array(
    '#type' => 'textfield',
    '#title' => t('Fancybox overlay show'),
    '#default_value' => variable_get('fancybox_overlayshow', 'true'),
  );
  $form['fancybox']['fancybox_overlayopacity'] = array(
    '#type' => 'textfield',
    '#title' => t('Fancybox overlay opacity'),
    '#default_value' => variable_get('fancybox_overlayopacity', '10'),
  );
  return system_settings_form($form);
}