function paypal_donate_form_alter in Paypal Donation 7
Slight ateration to make the email field required.
@since 1.4
Parameters
$form Nested array of form elements that comprise the form.:
$form_state A keyed array containing the current state of the form. The arguments that drupal_get_form() was originally called with are available in the array $form_state['build_info']['args'].:
$form_id String representing the name of the form itself. Typically this is the name of the function that generated the form.:
Return value
void
File
- ./
paypal_donate.module, line 78
Code
function paypal_donate_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'paypal_donate_node_form') {
$form['paypal_donate_email']['und'][0]['value']['#required'] = true;
}
}