You are here

function rules_action_drupal_message_form in Rules 6

Action drupal message configuration form.

Related topics

File

rules/modules/system.rules_forms.inc, line 14
Rules configuration forms for the system module

Code

function rules_action_drupal_message_form($settings, &$form) {
  $settings += array(
    'message' => '',
    'error' => '',
  );
  $form['settings']['message'] = array(
    '#type' => 'textarea',
    '#title' => t('Message'),
    '#default_value' => $settings['message'],
    '#description' => t('The message that should be displayed.'),
  );
  $form['settings']['error'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display as error message'),
    '#default_value' => $settings['error'],
  );
}