function hook_path_delete

Same name in other branches
  1. 8.9.x core/modules/path/path.api.php \hook_path_delete()

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()
path_delete in includes/path.inc
Delete a URL alias.

File

modules/path/path.api.php, line 65

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.