function system_message_action_form

File

modules/system/system.module, line 3315

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.