You are here

function contact_attach_admin_settings in Contact Attach 5

Same name and namespace in other branches
  1. 6 contact_attach.module \contact_attach_admin_settings()
  2. 7 contact_attach.admin.inc \contact_attach_admin_settings()

Administration settings form.

Return value

The completed form definition.

1 string reference to 'contact_attach_admin_settings'
contact_attach_menu in ./contact_attach.module
Implementation of hook_menu().

File

./contact_attach.module, line 70
This is the main code file for the Contact attach module. This module gives users the ability of attaching one or more files to e-mails sent using the site-wide contact form.

Code

function contact_attach_admin_settings() {
  $form = array();
  $form['contact_attach_number'] = array(
    '#type' => 'textfield',
    '#title' => t('Number of attachments'),
    '#default_value' => variable_get('contact_attach_number', '3'),
    '#size' => 10,
    '#description' => t('The number of attachments to allow on the contact form.'),
  );
  return system_settings_form($form);
}