function system_message_action_form

7.x system.module system_message_action_form($context)
6.x system.module system_message_action_form($context)

File

drupal-6.x/modules/system/system.module, line 1836
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 the following variables: %site_name, %username, %node_url, %node_type, %title, %teaser, %body. Not all variables will be available in all contexts.'),
  );
  return $form;
}