image_theme()
Implements hook_theme().
File
- core/modules/image/image.module, line 103
- Exposes global functionality for creating image styles.
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | function image_theme() { return array ( // Theme functions in image.module. 'image_style' => array ( // HTML 4 and XHTML 1.0 always require an alt attribute. The HTML 5 draft // allows the alt attribute to be omitted in some cases. Therefore, // default the alt attribute to an empty string, but allow code using // '#theme' => 'image_style' to pass explicit NULL for it to be omitted. // Usually, neither omission nor an empty string satisfies accessibility // requirements, so it is strongly encouraged for code using '#theme' => // 'image_style' to pass a meaningful value for the alt variable. // The title attribute is optional in all cases, so it is omitted by // default. 'variables' => array ( 'style_name' => NULL, 'uri' => NULL, 'width' => NULL, 'height' => NULL, 'alt' => '' , 'title' => NULL, 'attributes' => array (), ), ), // Theme functions in image.admin.inc. 'image_style_preview' => array ( 'variables' => array ( 'style' => NULL), 'file' => 'image.admin.inc' , ), 'image_anchor' => array ( 'render element' => 'element' , 'file' => 'image.admin.inc' , ), 'image_resize_summary' => array ( 'variables' => array ( 'data' => NULL, 'effect' => array ()), ), 'image_scale_summary' => array ( 'variables' => array ( 'data' => NULL, 'effect' => array ()), ), 'image_crop_summary' => array ( 'variables' => array ( 'data' => NULL, 'effect' => array ()), ), 'image_rotate_summary' => array ( 'variables' => array ( 'data' => NULL, 'effect' => array ()), ), // Theme functions in image.field.inc. 'image_widget' => array ( 'render element' => 'element' , 'file' => 'image.field.inc' , ), 'image_formatter' => array ( 'variables' => array ( 'item' => NULL, 'item_attributes' => NULL, 'url' => NULL, 'image_style' => NULL), 'file' => 'image.field.inc' , ), ); } |
Please login to continue.