Delete Node Alias, prevent regenetation

Public

Deletes alias, removes checkbox to regenerate on next save

Get raw version
php
  1. <?php
  2. $node = node_load(17);
  3. $node->path['pathauto'] = FALSE;
  4. node_save($node);
  5. pathauto_node_delete($node);
  6. node_load($node->nid);
  7. ?>