function pathauto_path_delete_multiple in Pathauto 7
Delete multiple URL aliases.
Intent of this is to abstract a potential path_delete_multiple() function for Drupal 7 or 8.
Parameters
$pids: An array of path IDs to delete.
1 call to pathauto_path_delete_multiple()
- pathauto_path_delete_all in ./
pathauto.module - Delete an URL alias and any of its sub-paths.
File
- ./
pathauto.module, line 165 - Main file for the Pathauto module, which automatically generates aliases for content.
Code
function pathauto_path_delete_multiple($pids) {
foreach ($pids as $pid) {
path_delete(array(
'pid' => $pid,
));
}
}