You are here

function imagefield_focus_elements in ImageField Focus 6

Implementation of hook_elements().

File

./imagefield_focus.module, line 79
Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

function imagefield_focus_elements() {
  $types = array_keys(array_filter(imagefield_focus_get_widgets()));
  foreach ($types as $type) {
    $elements[$type] = array(
      '#process' => array(
        'imagefield_focus_widget_process',
      ),
      '#element_validate' => array(
        'imagefield_focus_widget_validate',
      ),
    );
  }
  return $elements;
}