function editor_note_load in Editor Notes 7
Loads single note based on certain conditions.
Parameters
int|string $note_id: The unique ID of the note entry.
array $conditions: An associative array of conditions used by entity_load() (deprecated).
bool $reset: Whether to reset the internal cache for the requested entity type.
Return value
object|bool Success: loaded note object. Fail: boolean indicating that query failed.
See also
3 calls to editor_note_load()
- editor_note_confirm_edit_form in ./
editor_note.pages.inc - Builds confirmation form for editing the note which displays in popup.
- editor_note_confirm_edit_form_update in ./
editor_note.pages.inc - Submit callback for 'Update' button in 'editor_note_confirm_edit_form'.
- editor_note_confirm_remove_form in ./
editor_note.pages.inc - Builds confirmation form for removing the note which displays in popup.
File
- ./
editor_note.module, line 1065 - Main functionality for Editor Notes module.
Code
function editor_note_load($note_id, array $conditions = array(), $reset = FALSE) {
$note_array = entity_load('editor_note', array(
$note_id,
), $conditions, $reset);
if (!empty($note_array)) {
return $note_array[$note_id];
}
return FALSE;
}