You are here

function manualcrop_default_widget_settings in Manual Crop 7

Returns the default widget settings.

Return value

Array of default widget settings.

4 calls to manualcrop_default_widget_settings()
manualcrop_croptool_process in ./manualcrop.helpers.inc
Add a croptool to the form element. This extends the FAPI widget or simply adds a new form item to enable cropping in a regular form.
manualcrop_field_widget_info_alter in ./manualcrop.module
Implements hook_field_widget_info_alter().
manualcrop_form_file_entity_file_type_form_alter in ./manualcrop.admin.inc
Implements hook_form_FORM_ID_alter().
_manualcrop_process_file_entity_form in ./manualcrop.helpers.inc
Add the crop functionality to the File Entity form.

File

./manualcrop.helpers.inc, line 68
Helper functions for the Manual Crop module.

Code

function manualcrop_default_widget_settings() {
  $defaults = array(
    // Enable Manual Crop?
    'manualcrop_enable' => FALSE,
    // Enable keyboard shortcuts?
    'manualcrop_keyboard' => TRUE,
    // Show a list of thubnails instead of a selection list or button?
    'manualcrop_thumblist' => FALSE,
    // Enable inline cropping?
    'manualcrop_inline_crop' => FALSE,
    // Show the crop info (width, height...)?
    'manualcrop_crop_info' => TRUE,
    // Automatically update the preview image?
    'manualcrop_instant_preview' => TRUE,
    // Open the crop tool after uploading?
    'manualcrop_instant_crop' => FALSE,
    // Show a default crop area when opening an uncropped image?
    'manualcrop_default_crop_area' => TRUE,
    // Maximize the default crop area?
    'manualcrop_maximize_default_crop_area' => FALSE,
    // Exclude or include the selected styles?
    'manualcrop_styles_mode' => 'include',
    // List of selected styles.
    'manualcrop_styles_list' => array(),
    // List of required crop selections.
    'manualcrop_require_cropping' => array(),
  );
  if (module_exists('insert')) {

    // Filter all styles without a Manual Crop effect?
    $defaults['manualcrop_filter_insert'] = TRUE;
  }
  return $defaults;
}