You are here

function log_load in Log entity 7

Load a log.

Parameters

int $id: The log id.

bool $reset: Boolean: whether or not to reset the entity cache.

Return value

Log Returns a log entity.

1 call to log_load()
_log_action_date_form in ./log.module
Log action form with date field (helper function).
1 string reference to 'log_load'
log_entity_info in ./log.module
Implements hook_entity_info().

File

./log.module, line 981
Log - A general purpose record keeping system.

Code

function log_load($id, $reset = FALSE) {
  $logs = log_load_multiple(array(
    $id,
  ), array(), $reset);
  return reset($logs);
}