You are here

function domain_path_save_paths in Domain Path 7

A helper function to save multiple domain paths at once.

Parameters

$paths: An array of path aliases.

See also

domain_path_path_save()

1 call to domain_path_save_paths()
domain_path_node_insert in ./domain_path.module
Implements hook_node_insert().

File

./domain_path.module, line 491
Path alias handling for multiple domains.

Code

function domain_path_save_paths($paths) {
  if (!empty($paths)) {
    foreach ($paths as $path) {
      domain_path_path_save($path, FALSE);
    }
  }

  // Rebuild the node alias.
  drupal_static_reset('domain_path_lookup_path');
}