You are here

function pathauto_node_insert in Pathauto 7

Implements hook_node_insert().

File

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

Code

function pathauto_node_insert($node) {

  // @todo Remove the next line when http://drupal.org/node/1025870 is fixed.
  unset($node->uri);
  pathauto_node_update_alias($node, 'insert');
}