1 image.module image_theme()

Implements hook_theme().

File

core/modules/image/image.module, line 175
Exposes global functionality for creating image styles.

Code

function image_theme() {
  $base = array(
    'file' => 'image.theme.inc',
  );

  return array(
    'image_style' => array(
      'variables' => array(
        'style_name' => NULL,
        'path' => NULL,
        'width' => NULL,
        'height' => NULL,
        'alt' => '',
        'title' => NULL,
        'uri' => NULL,
        'attributes' => array(),
      ),
    ) + $base,
    'image_style_list' => array(
      'variables' => array('styles' => NULL),
    ) + $base,
    'image_style_effects' => array(
      'render element' => 'form',
    ) + $base,
    'image_style_preview' => array(
      'variables' => array('style' => NULL),
    ) + $base,
    'image_anchor' => array(
      'render element' => 'element',
    ) + $base,
    'image_resize_summary' => array(
      'variables' => array('data' => NULL),
    ) + $base,
    'image_scale_summary' => array(
      'variables' => array('data' => NULL),
    ) + $base,
    'image_crop_summary' => array(
      'variables' => array('data' => NULL),
    ) + $base,
    'image_rotate_summary' => array(
      'variables' => array('data' => NULL),
    ) + $base,
    'image_widget' => array(
      'render element' => 'element',
    ) + $base,
    'image_formatter' => array(
      'variables' => array('item' => NULL, 'path' => NULL, 'image_style' => NULL),
    ) + $base,
  );
}