You are here

function reviews_create_alias in Reviews 7

Helper function to create the alias.

File

./reviews.module, line 400
This file defines all the necessary hooks and functions to create a system for enabling and authoring content reviews on a per content type basis.

Code

function reviews_create_alias($node, $op) {
  module_load_include('inc', 'pathauto');
  pathauto_create_alias('reviews', $op, 'node/' . $node->nid . '/reviews', array(
    'node' => $node,
  ), 'reviews');
}