You are here

function imagefield_crop_theme in Imagefield Crop 7.3

Same name and namespace in other branches
  1. 6 imagefield_crop.module \imagefield_crop_theme()
  2. 7 imagefield_crop.module \imagefield_crop_theme()
  3. 7.2 imagefield_crop.module \imagefield_crop_theme()

Implements hook_theme().

Return value

array

File

./imagefield_crop.module, line 940

Code

function imagefield_crop_theme() {
  $items = array();
  $extra = array(
    'file' => 'theme.inc',
    'path' => drupal_get_path('module', 'imagefield_crop') . '/theme',
  );
  $items['imagefield_crop_widget'] = array(
    'render element' => 'element',
  ) + $extra;
  $items['imagefield_crop_preview'] = array(
    'render element' => 'element',
  ) + $extra;
  $items['imagefield_crop_preset_list'] = array(
    'variables' => array(
      'presets' => NULL,
    ),
  ) + $extra;
  return $items;
}