path_save
function path_save
path_save(&$path)
Save a path alias to the database.
Parameters
$path: An associative array containing the following keys:
- source: The internal system path.
- alias: The URL alias.
- pid: (optional) Unique path alias identifier.
- language: (optional) The language of the alias.
File
- includes/path.inc, line 434
- Functions to handle paths in Drupal, including path aliasing.
Code
function path_save(&$path) { $path += array('language' => LANGUAGE_NONE); // Load the stored alias, if any. if (!empty($path['pid']) && !isset($path['original'])) { $path['original'] = path_load($path['pid']); }