system_message_action

Versions
6 – 7
system_message_action(&$object, $context = array())

A configurable Drupal action. Sends a message to the current user's screen.

Code

modules/system/system.module, line 2888

<?php
function system_message_action(&$object, $context = array()) {
  if (empty($context['node'])) {
    $context['node'] = $object;
  }

  $context['message'] = token_replace($context['message'], $context);
  drupal_set_message($context['message']);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.