You are here

function privatemsg_attachments_form_privatemsg_admin_settings_alter in Privatemsg 6.2

File

privatemsg_attachments/privatemsg_attachments.module, line 89
Allows users to add attachments to messages

Code

function privatemsg_attachments_form_privatemsg_admin_settings_alter(&$form, &$form_state) {
  $form['attachments'] = array(
    '#type' => 'fieldset',
    '#title' => t('Privatemsg attachments'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
    '#weight' => 25,
  );
  $form['attachments']['privatemsg_attachments_upload_dir'] = array(
    '#title' => t('Privatemsg attachments directory'),
    '#type' => 'textfield',
    '#default_value' => variable_get('privatemsg_attachments_upload_dir', ''),
    '#description' => t("Relative path, based on Drupal's configured file attachments path, where private message attachments will be stored."),
    '#weight' => -4,
  );
}