You are here

function image_theme in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/image/image.module \image_theme()
  2. 9 core/modules/image/image.module \image_theme()
  3. 10 core/modules/image/image.module \image_theme()

Implements hook_theme().

File

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

Code

function image_theme() {
  return array(
    // Theme functions in image.module.
    'image_style' => array(
      'variables' => array(
        'style_name' => NULL,
        'path' => NULL,
        'width' => NULL,
        'height' => NULL,
        'alt' => '',
        'title' => NULL,
        'attributes' => array(),
      ),
    ),
    // Theme functions in image.admin.inc.
    'image_style_list' => array(
      'variables' => array(
        'styles' => NULL,
      ),
    ),
    'image_style_effects' => array(
      'render element' => 'form',
    ),
    'image_style_preview' => array(
      'variables' => array(
        'style' => NULL,
      ),
    ),
    'image_anchor' => array(
      'render element' => 'element',
    ),
    'image_resize_summary' => array(
      'variables' => array(
        'data' => NULL,
      ),
    ),
    'image_scale_summary' => array(
      'variables' => array(
        'data' => NULL,
      ),
    ),
    'image_crop_summary' => array(
      'variables' => array(
        'data' => NULL,
      ),
    ),
    'image_rotate_summary' => array(
      'variables' => array(
        'data' => NULL,
      ),
    ),
    // Theme functions in image.field.inc.
    'image_widget' => array(
      'render element' => 'element',
    ),
    'image_formatter' => array(
      'variables' => array(
        'item' => NULL,
        'path' => NULL,
        'image_style' => NULL,
      ),
    ),
  );
}