You are here

function manualcrop_insert_styles in Manual Crop 7

Implements hook_insert_styles().

1 call to manualcrop_insert_styles()
manualcrop_field_widget_settings_form_alter in ./manualcrop.admin.inc
Alters the existing field widget settings form elements.

File

./manualcrop.module, line 981

Code

function manualcrop_insert_styles() {
  $insert_styles =& drupal_static(__FUNCTION__);
  if (is_null($insert_styles)) {
    $styles = manualcrop_styles_with_crop(FALSE, NULL, TRUE);
    $insert_styles = array();
    foreach ($styles as $style_name => $label) {
      $insert_styles['image_' . $style_name] = array(
        'label' => $label,
      );
    }
  }
  return $insert_styles;
}