Last active
August 29, 2015 13:56
-
-
Save sebcunin/8819572 to your computer and use it in GitHub Desktop.
#Drupal #theming #HOOK à poser dans le thème d'un Drupal
This file contains 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 | |
// Supprimer tous le wrapping présent sur les champs | |
// d'un formulaire | |
function THEME_form_element($variables) { | |
$element = &$variables['element']; | |
$output = ''; | |
$output .= ' ' . theme('form_element_label', $variables) . "\n"; | |
$output .= ' ' . $prefix . $element['#children'] . $suffix; | |
return $output; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment