drupal_path_alias_whitelist_rebuild

function drupal_path_alias_whitelist_rebuild

drupal_path_alias_whitelist_rebuild($source = NULL)

Rebuild the path alias white list.

Parameters

$source: An optional system path for which an alias is being inserted.

Return value

An array containing a white list of path aliases.

File

includes/path.inc, line 368
Functions to handle paths in Drupal, including path aliasing.

Code

function drupal_path_alias_whitelist_rebuild($source = NULL) {
  // When paths are inserted, only rebuild the whitelist if the system path
  // has a top level component which is not already in the whitelist.
  if (!empty($source)) {
    $whitelist = variable_get('path_alias_whitelist', NULL);
    if (isset($whitelist[strtok($source, '/')])) {
      return $