system_message_action_form

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

File

modules/system/system.module, line 3239
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;
}
Login or register to post comments