You are here

function workbench_moderation_transition_load in Workbench Moderation 7.3

Same name and namespace in other branches
  1. 7 workbench_moderation.module \workbench_moderation_transition_load()

Fetch a workbench_moderation_transition object.

Parameters

int $id: Integer specifying the workbench_moderation_transition id.

bool $reset: A boolean indicating that the internal cache should be reset.

Return value

obj A fully-loaded $workbench_moderation_transition object, or FALSE if it cannot be loaded.

See also

workbench_moderation_transition_load_multiple()

File

./workbench_moderation.module, line 2356
Content moderation for Workbench.

Code

function workbench_moderation_transition_load($id, $reset = FALSE) {
  $workbench_moderation_transition = workbench_moderation_transition_load_multiple(array(
    $id,
  ), array(), $reset);
  return reset($workbench_moderation_transition);
}