You are here

function library_email_form_submit in Library 6

Same name and namespace in other branches
  1. 5.2 library.actions.inc \library_email_form_submit()
  2. 6.2 library.actions.inc \library_email_form_submit()
  3. 7 library.actions.inc \library_email_form_submit()

File

./library.actions.inc, line 243
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';
  return;
}