Révision 6b24a280
Ajouté par Assos Assos il y a presque 4 ans
drupal7/includes/path.inc | ||
---|---|---|
466 | 466 |
$criteria = array('pid' => $criteria); |
467 | 467 |
} |
468 | 468 |
$path = path_load($criteria); |
469 |
$query = db_delete('url_alias'); |
|
470 |
foreach ($criteria as $field => $value) { |
|
471 |
$query->condition($field, $value); |
|
469 |
if (isset($path['source'])) { |
|
470 |
$query = db_delete('url_alias'); |
|
471 |
foreach ($criteria as $field => $value) { |
|
472 |
$query->condition($field, $value); |
|
473 |
} |
|
474 |
$query->execute(); |
|
475 |
module_invoke_all('path_delete', $path); |
|
476 |
drupal_clear_path_cache($path['source']); |
|
472 | 477 |
} |
473 |
$query->execute(); |
|
474 |
module_invoke_all('path_delete', $path); |
|
475 |
drupal_clear_path_cache($path['source']); |
|
476 | 478 |
} |
477 | 479 |
|
478 | 480 |
/** |
Formats disponibles : Unified diff
-a