You are here

function messaging_devel_store_msg in Messaging 7

Message processor, store for display in a block

2 calls to messaging_devel_store_msg()
messaging_devel_block in messaging_devel/messaging_devel.module
Implementation of hook_block()
messaging_devel_block_msg in messaging_devel/messaging_devel.module
Message processor, store for display in a block

File

messaging_devel/messaging_devel.module, line 221
Simple messaging using html page. Messaging method plug-in

Code

function messaging_devel_store_msg($message = NULL) {
  if ($message) {
    $_SESSION['messaging_devel_store'][] = $message;
    return $message;
  }
  elseif (isset($_SESSION['messaging_devel_store'])) {
    $messages = $_SESSION['messaging_devel_store'];
    unset($_SESSION['messaging_devel_store']);
    return $messages;
  }
}