You are here

function pathauto_persist_entity_state_load in Pathauto Persistent State 7

Same name and namespace in other branches
  1. 6 pathauto_persist.module \pathauto_persist_entity_state_load()

Load a pathauto state for an entity.

Parameters

$entity_type: An entity type.

$entity_id: An entity ID.

File

./pathauto_persist.module, line 70

Code

function pathauto_persist_entity_state_load($entity_type, $entity_id) {
  $pathauto_state = pathauto_persist_entity_state_load_multiple($entity_type, array(
    $entity_id,
  ));
  return !empty($pathauto_state) ? reset($pathauto_state) : FALSE;
}