Skip navigation
Help

hook_path_delete

7 path.api.php hook_path_delete($path)

Allow modules to respond to a path being deleted.

Parameters

$path: An associative array containing the following keys:

  • source: The internal system path.
  • alias: The URL alias.
  • pid: Unique path alias identifier.
  • language: The language of the alias.

See also

path_delete()

Related topics

1 invocation of hook_path_delete()

File

drupal/modules/path/path.api.php, line 66
Hooks provided by the Path module.

Code

function hook_path_delete($path) {
  db_delete('mytable')
    ->condition('pid', $path['pid'])
    ->execute();
}