You are here

function system_message_action_form in Drupal 7

Same name and namespace in other branches
  1. 6 modules/system/system.module \system_message_action_form()

File

modules/system/system.module, line 3303
Configuration system that lets administrators modify the workings of the site.

Code

function system_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;
}