Created
April 26, 2012 22:55
-
-
Save bangpound/2503942 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* FormAPI theme function. Theme the output of an image field. | |
*/ | |
function theme_imagefield_widget($element) { | |
if ($element['#field_name'] == 'FIELD_WHATEVER' && $element['#type_name'] == 'soy_poderosa_photo') { | |
$element['data']['title']['#title'] = t('The better title just for this field on this node type.'); | |
} | |
drupal_add_css(drupal_get_path('module', 'imagefield') .'/imagefield.css'); | |
$element['#id'] .= '-upload'; // Link the label to the upload field. | |
return theme('form_element', $element, $element['#children']); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment