function library_email_form_submit in Library 7
Same name and namespace in other branches
- 5.2 library.actions.inc \library_email_form_submit()
- 6.2 library.actions.inc \library_email_form_submit()
- 6 library.actions.inc \library_email_form_submit()
Form submission handler for sending e-mails.
Parameters
array $form: Regular form array.
array $form_state: Regular form_state array being modified.
File
- ./
library.actions.inc, line 309 - Hooks into core Drupal actions module
Code
function library_email_form_submit($form, &$form_state) {
if ($form_state['values']['op'] == t('Send E-mail')) {
drupal_set_message(t('The email has been sent.'));
}
$form_state['redirect'] = 'library-items';
}