You are here

protected function PrivatemsgMessageController::cacheGet in Privatemsg 7

Same name and namespace in other branches
  1. 7.2 privatemsg.module \PrivatemsgMessageController::cacheGet()

Gets entities from the static cache.

Parameters

$ids: If not empty, return entities that match these IDs.

$conditions: If set, return entities that match all of these conditions.

Return value

Array of entities from the entity cache.

Overrides DrupalDefaultEntityController::cacheGet

File

./privatemsg.module, line 3138
Allows users to send private messages to other users.

Class

PrivatemsgMessageController
Private message controller, loads private messages.

Code

protected function cacheGet($ids, $conditions = array()) {

  // Passing the account condition, which does not exist as a property to
  // parent::cacheGet() causes notices, remove it.
  // @todo Investigate if this causes any undesired side effects.
  if (isset($conditions['account'])) {
    unset($conditions['account']);
  }
  return parent::cacheGet($ids, $conditions);
}