<?php
/**
*
Implements hook_theme().
*/
function
dgd7_theme() {
return
array(
'contact_site_form'
=> array(
'render
element' => 'form',
),
);
}
/**
*
Implements theme_forms_contact_site_form().
*/
function
dgd7_contact_site_form($variables) {
//
Hide the subject field. It's not required.
hide($variables['form']['subject']);
//
Change the labels of the "name" and "mail"
textfields.
$variables['form']['name']['#title']
= t('Name');
$variables['form']['mail']['#title']
= t('E-mail');
//
Create output any way you want.
$output
= '<div class="something">';
$output
.= '<p class="note">'. t("We'd love hear from
you. Expect to hear back from us in 1-2 business days.")
.'</p>';
$output
.= render($variables['form']['name']);
$output
.= render($variables['form']['mail']);
$output
.= '</div>';
//
Be sure to include a rendered version of the remaining form
items.
$output
.= drupal_render_children($variables['form']);
//
Return the output.
return
$output;
}
Mark_owsky