You are here

function manualcrop_global_settings_form in Manual Crop 7

Form builder; Global settings configuration form.

1 string reference to 'manualcrop_global_settings_form'
manualcrop_menu in ./manualcrop.module
Implements hook_menu().

File

./manualcrop.admin.inc, line 10
Admin functionality for the Manual Crop module.

Code

function manualcrop_global_settings_form() {
  $form = array();
  $form['manualcrop_cache_control'] = array(
    '#type' => 'checkbox',
    '#title' => t('Reload cache-control'),
    '#description' => t('When enabled, a cache-controlling variable will be added to the cropped image path. This variable will change as soon as you re-crop the image and provide the user with the latest, re-cropped version of the image when the image is reloaded.'),
    '#default_value' => variable_get('manualcrop_cache_control', TRUE),
  );
  $form['manualcrop_force_effect_order'] = array(
    '#type' => 'checkbox',
    '#title' => t('Force Manual Crop effects to run first'),
    '#description' => t('Manual Crop effects must execute before the dimensions of the original image are changed. <strong>Disable at your own risk!</strong>'),
    '#default_value' => variable_get('manualcrop_force_effect_order', TRUE),
  );
  $form['#submit'] = array(
    'manualcrop_global_settings_form_submit',
  );
  return system_settings_form($form);
}