Skip to content

Instantly share code, notes, and snippets.

@guizmo
Created January 9, 2012 23:58
Show Gist options
  • Save guizmo/1585781 to your computer and use it in GitHub Desktop.
Save guizmo/1585781 to your computer and use it in GitHub Desktop.
Untitled
function revesdo_form_alter(&$form, $form_state, $form_id) {
if($form['#id'] == 'views-exposed-form-spas-presentation-page') {
foreach ($form as $key => $formField) {
if(isset($formField['min']) && is_array($formField['min'])){
$min = $formField['min']['#default_value'];
$max = $formField['max']['#default_value'];
$form[$key]['min']['#title'] = $form[$key]['min']['#default_value'];
$form[$key]['max']['#title'] = $form[$key]['max']['#default_value'];
}//end if isset
}//endforeach
}//end if $form
}//end function revesdo_form_alter
<!-- content to be placed inside <body>…</body> -->
<h1>dabblet c pas mal pour se partager du code kan on test</h1>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment