'fieldset', '#title' => t('Privatemsg e-mail notification'), '#collapsible' => FALSE, '#collapsed' => FALSE, ); $form['pm_email']['pm_email_notify_default'] = array( '#type' => 'checkbox', '#title' => t('Notify users of new private messages by default'), '#default_value' => variable_get('pm_email_notify_default', TRUE), '#weight' => 0, ); $form['pm_email']['pm_email_notify_desc'] = array( '#type' => 'markup', '#value' => t('Customize the email messages sent to users upon receipt of a new private message.
Available variables are: !author, !author_uid, !pm_subject, !pm_body, !thread, !site, !login_url, !uri, !uri_brief, !message (URL) and !settings (URL).
To translate these messages use the i18nstrings.module and translate them trough the Translate interface ("Privatemsg Email Notification" text group).', array('!translate_url' => url('admin/build/translate/search'))), '#weight' => 1, ); $form['pm_email']['pm_email_notify_from'] = array( '#type' => 'textfield', '#title' => t('From e-mail address for notifications'), '#default_value' => variable_get('pm_email_notify_from',''), '#weight' => 2, '#description' => t('This is the e-mail address that notifications will come from. Leave blank to use the site default.'), ); $form['pm_email']['pm_email_notify_subject'] = array( '#type' => 'textfield', '#title' => t('Subject of notification messages'), '#default_value' => _pm_email_notify_text('subject', NULL, FALSE), '#weight' => 2, ); $form['pm_email']['pm_email_notify_body'] = array( '#type' => 'textarea', '#title' => t('Body of notification messages'), '#default_value' => _pm_email_notify_text('body', NULL, FALSE), '#weight' => 3, ); return system_settings_form($form); }