You are here

function epsacrop_theme in EPSA Crop - Image Cropping 6

Same name and namespace in other branches
  1. 6.2 epsacrop.module \epsacrop_theme()

Implementation of hook_theme permet d'overider la fonction de imagefield afin d'ajouter le lien pour gérer le crop

File

./epsacrop.module, line 395
The main file of module

Code

function epsacrop_theme($existing, $type, $theme, $path) {
  $widget = $existing['imagefield_widget_item'];
  $widget['function'] = 'theme_epsacrop_widget_item';
  $widget['theme paths'][] = $path;

  /*
  $imagecache = $existing['imagecache'];
  $imagecache['function'] = 'theme_epsacrop';
  $imagecache['theme paths'][] = $path;
  */

  // return array('imagefield_widget_item' => $widget, 'imagecache' => $imagecache);
  return array(
    'imagefield_widget_item' => $widget,
  );
}