summaryrefslogtreecommitdiff
path: root/modules/image
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-15 17:40:18 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-15 17:40:18 +0000
commit5a8452c55b9e6d7fcef921a7b56c23ef29eec3a9 (patch)
tree7285272f52d423a3a49b2a8ac3a596fb5939c49d /modules/image
parentb692036962b8d2c5c2b12749cf662d537a889375 (diff)
downloadbrdo-5a8452c55b9e6d7fcef921a7b56c23ef29eec3a9.tar.gz
brdo-5a8452c55b9e6d7fcef921a7b56c23ef29eec3a9.tar.bz2
- Patch #493746 by JohnAlbin, ultimateboy, moshe weitzman: Enhance drupal_attributes() for multiple valued values.
Diffstat (limited to 'modules/image')
-rw-r--r--modules/image/image.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/image/image.module b/modules/image/image.module
index a979e6e5f..394bd5df5 100644
--- a/modules/image/image.module
+++ b/modules/image/image.module
@@ -29,7 +29,7 @@ function image_menu() {
function image_theme() {
return array(
'image_style' => array(
- 'arguments' => array('style' => NULL, 'path' => NULL, 'alt' => '', 'title' => '', 'attributes' => NULL, 'getsize' => TRUE),
+ 'arguments' => array('style' => NULL, 'path' => NULL, 'alt' => '', 'title' => '', 'attributes' => array(), 'getsize' => TRUE),
),
);
}
@@ -666,7 +666,7 @@ function image_effect_apply(&$image, $effect) {
* A string containing the image tag.
* @ingroup themeable
*/
-function theme_image_style($style_name, $path, $alt = '', $title = '', $attributes = NULL, $getsize = TRUE) {
+function theme_image_style($style_name, $path, $alt = '', $title = '', $attributes = array(), $getsize = TRUE) {
// theme_image() can only honor the $getsize parameter with local file paths.
// The derivative image is not created until it has been requested so the file
// may not yet exist, in this case we just fallback to the URL.