You are here

function pathauto_entity_insert in Pathauto 7

Same name and namespace in other branches
  1. 8 pathauto.module \pathauto_entity_insert()

Implements hook_entity_insert().

File

./pathauto.module, line 413
Main file for the Pathauto module, which automatically generates aliases for content.

Code

function pathauto_entity_insert($entity, $entity_type) {
  if (isset($entity->path['pathauto'])) {
    pathauto_entity_state_save($entity_type, $entity, $entity->path['pathauto']);
  }
}