function action_message_action_form

Constructs the settings form for action_message_action().

See also

action_message_action_submit()

File

drupal/core/modules/action/action.module, line 626
This is the Actions module for executing stored actions.

Code

function action_message_action_form($context) {
  $form['message'] = array(
    '#type' => 'textarea',
    '#title' => t('Message'),
    '#default_value' => isset($context['message']) ? $context['message'] : '',
    '#required' => TRUE,
    '#rows' => '8',
    '#description' => t('The message to be displayed to the current user. You may include placeholders like [node:title], [user:name], and [comment:body] to represent data that will be different each time message is sent. Not all placeholders will be available in all contexts.'),
  );
  return $form;
}