You are here

function messaging_store in Messaging 7

Same name and namespace in other branches
  1. 5 messaging.module \messaging_store()
  2. 6.4 messaging.module \messaging_store()
  3. 6 messaging.module \messaging_store()
  4. 6.2 messaging.module \messaging_store()
  5. 6.3 messaging.module \messaging_store()

Entry point for the storage and queueing API

Default methods are implemented by Messaging_Store class

5 calls to messaging_store()
messaging_cron in ./messaging.module
Implementation of hook_cron()
messaging_devel_user_page in messaging_devel/messaging_devel.module
Menu callback. Display pending messages to the user
Messaging_Message::delete in ./messaging.message.inc
Delete message from logs and store
Messaging_Message::save in ./messaging.message.inc
Save message to store $name
Messaging_Send_Method::message_queue in ./messaging.method.inc
Queue message for next delivery

File

./messaging.module, line 471

Code

function messaging_store($name = 'queue') {
  $messaging_store =& drupal_static(__FUNCTION__);
  if (!isset($messaging_store[$name])) {
    $class = variable_get('messaging_store_' . $name);
    $messaging_store[$name] = $class ? new $class($name) : FALSE;
  }
  return $messaging_store[$name];
}