| 1 |
<?php |
<?php |
| 2 |
// $Id: userreview.module,v 1.23 2007/02/17 08:44:34 gerdriesselmann Exp $ |
// $Id: userreview.module,v 1.24 2007/03/15 12:57:39 gerdriesselmann Exp $ |
| 3 |
|
|
| 4 |
/* |
/* |
| 5 |
* userreview.module |
* userreview.module |
| 1069 |
$settings['patterndefault'] = ''; |
$settings['patterndefault'] = ''; |
| 1070 |
$settings['bulkname'] = t('Bulk update userreview pages'); |
$settings['bulkname'] = t('Bulk update userreview pages'); |
| 1071 |
$settings['bulkdescr'] = |
$settings['bulkdescr'] = |
| 1072 |
t('Generate aliases for all existing userreview pages which do not already have aliases.'); |
t('Generate aliases for all existing "userreview/of"-pages which do not already have aliases. "userreview/of" lists all reviews for a given node. Note that these pages are not used for a single user review. To change the url for a single user review, change the url for nodes of type "review" in the node section.'); |
| 1073 |
$settings['placeholders'] = array( |
$settings['placeholders'] = array( |
| 1074 |
t('[reviewed item nid]') => t('For userreview nodes, the node id of the reviewed item.'), |
t('[reviewed item nid]') => t('For userreview nodes, the node id of the reviewed item.'), |
| 1075 |
t('[reviewed item title]') => t('For userreview nodes, the title of the reviewed item.'), |
t('[reviewed item title]') => t('For userreview nodes, the title of the reviewed item.'), |
| 1146 |
); |
); |
| 1147 |
|
|
| 1148 |
if ($node->content_id) { |
if ($node->content_id) { |
| 1149 |
$reviewed_node = node_load($node->content_id); |
$reviewed_node = node_load($node->content_id); |
| 1150 |
if ($reviewed_node) { |
if ($reviewed_node && function_exists('pathauto_cleanstring')) { |
| 1151 |
$placeholders[t('[reviewed item nid]')] = $reviewed_node->nid; |
$placeholders[t('[reviewed item nid]')] = pathauto_cleanstring($reviewed_node->nid); |
| 1152 |
$placeholders[t('[reviewed item title]')] = $reviewed_node->title; |
$placeholders[t('[reviewed item title]')] = pathauto_cleanstring($reviewed_node->title); |
| 1153 |
$placeholders[t('[reviewed item path]')] = drupal_get_path_alias('node/' . $reviewed_node->nid); |
$placeholders[t('[reviewed item path]')] = drupal_get_path_alias('node/' . $reviewed_node->nid); |
| 1154 |
} |
} |
| 1155 |
} |
} |