function pathauto_persist_entity_state_load_multiple in Pathauto Persistent State 7
Load a pathauto state for multiple entities.
Parameters
$entity_type: An entity type.
$entity_ids: An array of entity IDs.
2 calls to pathauto_persist_entity_state_load_multiple()
- pathauto_persist_entity_load in ./
pathauto_persist.module - Implements hook_entity_load().
- pathauto_persist_entity_state_load in ./
pathauto_persist.module - Load a pathauto state for an entity.
File
- ./
pathauto_persist.module, line 83
Code
function pathauto_persist_entity_state_load_multiple($entity_type, $entity_ids) {
$pathauto_state = db_query("SELECT entity_id, pathauto FROM {pathauto_persist} WHERE entity_type = :entity_type AND entity_id IN (:entity_ids)", array(
':entity_type' => $entity_type,
':entity_ids' => $entity_ids,
))
->fetchAllKeyed();
return $pathauto_state;
}