You are here

function pathauto_persist_entity_state_load in Pathauto Persistent State 6

Same name and namespace in other branches
  1. 7 pathauto_persist.module \pathauto_persist_entity_state_load()
1 call to pathauto_persist_entity_state_load()
pathauto_persist_nodeapi in ./pathauto_persist.module
Implements hook_nodeapi().

File

./pathauto_persist.module, line 15

Code

function pathauto_persist_entity_state_load($entity_type, $entity_id) {
  $pathauto_state = db_result(db_query("SELECT pathauto FROM {pathauto_persist} WHERE entity_type = '%s' AND entity_id = %d", $entity_type, $entity_id));
  return $pathauto_state !== FALSE ? $pathauto_state : NULL;
}