function pathauto_entity_state_load in Pathauto 7
Load a pathauto state for an entity.
Parameters
string $entity_type: An entity type.
int $entity_id: An entity ID.
Return value
bool A value that evaluates to TRUE if Pathauto should control this entity's path. A value that evaluates to FALSE if Pathauto should not manage the entity's path.
File
- ./
pathauto.module, line 450 - Main file for the Pathauto module, which automatically generates aliases for content.
Code
function pathauto_entity_state_load($entity_type, $entity_id) {
$pathauto_state = pathauto_entity_state_load_multiple($entity_type, array(
$entity_id,
));
return !empty($pathauto_state) ? reset($pathauto_state) : FALSE;
}