Created
April 26, 2012 23:14
-
-
Save bangpound/2504043 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
function nlirh_imagefield_widget($element) { | |
if ($element['#field_name'] == 'field_soy_poderosa_photo' && $element['#type_name'] == 'soy_poderosa_photo') { | |
print "WTF!"; | |
$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