function image_theme

Same name in other branches
  1. 9 core/modules/image/image.module \image_theme()
  2. 8.9.x core/modules/image/image.module \image_theme()
  3. 10 core/modules/image/image.module \image_theme()
  4. 11.x core/modules/image/image.module \image_theme()

Implements hook_theme().

File

modules/image/image.module, line 186

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,
            ),
        ),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.