function uc_wishlist_email_form in UC Wish List 7
Email form for wishlist.
1 string reference to 'uc_wishlist_email_form'
- uc_wishlist_menu in ./
uc_wishlist.module - Implements hook_menu().
File
- ./
uc_wishlist.pages.inc, line 763 - Page callback and functions for wish lists.
Code
function uc_wishlist_email_form($node, &$form_state, $account) {
global $user;
// TODO: Handle multiple wishlists?
$wid = uc_wishlist_get_wid($account->uid);
$form['subject'] = array(
'#type' => 'textfield',
'#title' => t('Subject'),
'#required' => TRUE,
'#description' => t('Enter Email Subject.'),
);
$form['recipients'] = array(
'#type' => 'textfield',
'#title' => t('Recipients'),
'#required' => TRUE,
'#description' => t('Email address of the reciepient. Seperate recipients using a comma.'),
);
$form['message'] = array(
'#type' => 'textarea',
'#title' => t('Message'),
'#rows' => 6,
'#required' => TRUE,
'#description' => t('Enter Email Message.'),
);
$form['wid'] = array(
'#type' => 'value',
'#value' => $wid,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Send'),
);
return $form;
}