| 1 |
<?php |
<?php |
| 2 |
// $Id: pathauto.inc,v 1.50 2008/08/26 04:55:19 freso Exp $ |
// $Id: pathauto.inc,v 1.51 2009/03/21 00:24:28 freso Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 264 |
* The name of your module (e.g., 'node'). |
* The name of your module (e.g., 'node'). |
| 265 |
* @param $op |
* @param $op |
| 266 |
* Operation being performed on the content being aliased |
* Operation being performed on the content being aliased |
| 267 |
* ('insert', 'update', or 'bulkupdate'). |
* ('insert', 'update', 'return', or 'bulkupdate'). |
| 268 |
* @param $placeholders |
* @param $placeholders |
| 269 |
* An array whose keys consist of the translated placeholders |
* An array whose keys consist of the translated placeholders |
| 270 |
* which appear in patterns (e.g., t('[title]')) and values are the |
* which appear in patterns (e.g., t('[title]')) and values are the |
| 364 |
} |
} |
| 365 |
} |
} |
| 366 |
|
|
| 367 |
|
// Return the generated alias if requested. |
| 368 |
|
if ($op == 'return') { |
| 369 |
|
return $alias; |
| 370 |
|
} |
| 371 |
|
|
| 372 |
// If $pid is NULL, a new alias is created - otherwise, the existing |
// If $pid is NULL, a new alias is created - otherwise, the existing |
| 373 |
// alias for the designated src is replaced |
// alias for the designated src is replaced |
| 374 |
_pathauto_set_alias($src, $alias, $module, $entity_id, $pid, $verbose, $old_alias, $language); |
_pathauto_set_alias($src, $alias, $module, $entity_id, $pid, $verbose, $old_alias, $language); |