function email_mail_page_form

cis7 email.module email_mail_page_form($form, $form_state, $object_type, $object_id, $field_name, $email)
cle7 email.module email_mail_page_form($form, $form_state, $object_type, $object_id, $field_name, $email)
elmsmedia7 email.module email_mail_page_form($form, $form_state, $object_type, $object_id, $field_name, $email)
icor7 email.module email_mail_page_form($form, $form_state, $object_type, $object_id, $field_name, $email)
meedjum_blog7 email.module email_mail_page_form($form, $form_state, $object_type, $object_id, $field_name, $email)
mooc7 email.module email_mail_page_form($form, $form_state, $object_type, $object_id, $field_name, $email)

Contact form

1 string reference to 'email_mail_page_form'
email_mail_page in sites/all/modules/ulmus/email/email.module
The contact form page.

File

sites/all/modules/ulmus/email/email.module, line 342
Module file for the email module, which creates a email address field.

Code

function email_mail_page_form($form, $form_state, $object_type, $object_id, $field_name, $email) {
  global $user;

  $form['object_id'] = array(
    '#type' => 'value',
    '#value' => $object_id,
  );
  $form['object_type'] = array(
    '#type' => 'value',
    '#value' => $object_type,
  );
  $form['field_name'] = array(
    '#type' => 'value',
    '#value' => $field_name,
  );
  $form['email'] = array(
    '#type' => 'value',
    '#value' => $email,
  );
  $form['name'] = array(
    '#type' => 'textfield',
    '#title' => t('Your name'),
    '#maxlength' => 255,
    '#default_value' => $user->uid ? $user->name : '',
    '#required' => TRUE,
  );
  $form['mail'] = array(
    '#type' => 'textfield',
    '#title' => t('Your e-mail address'),
    '#maxlength' => 255,
    '#default_value' => $user->uid ? $user->mail : '',
    '#required' => TRUE,
  );
  $form['subject'] = array(
    '#type' => 'textfield',
    '#title' => t('Subject'),
    '#maxlength' => 255,
    '#required' => TRUE,
  );
  $form['message'] = array(
    '#type' => 'textarea',
    '#title' => t('Message'),
    '#required' => TRUE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Send e-mail'),
    '#validate' => array('email_mail_page_form_validate'),
    '#submit' => array('email_mail_page_form_submit'),
  );
  return $form;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.