Skip to content

Instantly share code, notes, and snippets.

@sebcunin
Last active August 29, 2015 13:56
Show Gist options
  • Save sebcunin/8819572 to your computer and use it in GitHub Desktop.
Save sebcunin/8819572 to your computer and use it in GitHub Desktop.
#Drupal #theming #HOOK à poser dans le thème d'un Drupal
<?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