You are here

function redhen_note_load_multiple in RedHen CRM 7

Loads multiple notes by ID or based on a set of matching conditions.

Parameters

$note_ids: An array of ntoe IDs.

$conditions: An array of conditions on the {rehen_note} table in the form 'field' => $value.

$reset: Whether to reset the internal note loading cache.

Return value

An array of note objects indexed by note_id.

See also

entity_load()

3 calls to redhen_note_load_multiple()
redhen_note_entity_delete in modules/redhen_note/redhen_note.module
Implements hook_entity_delete().
redhen_note_load in modules/redhen_note/redhen_note.module
Loads a note by ID.
redhen_note_notes_page in modules/redhen_note/includes/redhen_note.pages.inc

File

modules/redhen_note/redhen_note.module, line 253
Redhen Notes main module

Code

function redhen_note_load_multiple($note_ids = array(), $conditions = array(), $reset = FALSE) {
  if (empty($note_ids) && empty($conditions)) {
    return array();
  }
  return entity_load('redhen_note', $note_ids, $conditions, $reset);
}