You are here

function reviews_pathauto in Reviews 7

Implements hook_pathauto.

File

./reviews.module, line 385
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_pathauto($op) {
  $settings = new stdClass();
  $settings->module = 'reviews';
  $settings->groupheader = t('Reviews Paths');
  $settings->patterndescr = t('Default path pattern');
  $settings->patterndefault = 'content/[node:title]/reviews';
  $settings->token_type = 'node';
  $settings->patternitems = array(
    'reviews' => 'Node Reviews',
  );
  $settings->batch_update_callback = 'reviews_pathauto_bulkupdate';
  return $settings;
}