| 1 |
<?php |
<?php |
| 2 |
// $Id: pathauto.inc,v 1.45 2008/06/18 20:02:40 greggles Exp $ |
// $Id: pathauto.inc,v 1.45.2.1 2009/03/21 00:28:54 freso Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 220 |
* The name of your module (e.g., 'node'). |
* The name of your module (e.g., 'node'). |
| 221 |
* @param $op |
* @param $op |
| 222 |
* Operation being performed on the content being aliased |
* Operation being performed on the content being aliased |
| 223 |
* ('insert', 'update', or 'bulkupdate'). |
* ('insert', 'update', 'return', or 'bulkupdate'). |
| 224 |
* @param $placeholders |
* @param $placeholders |
| 225 |
* An array whose keys consist of the translated placeholders |
* An array whose keys consist of the translated placeholders |
| 226 |
* which appear in patterns (e.g., t('[title]')) and values are the |
* which appear in patterns (e.g., t('[title]')) and values are the |
| 317 |
} |
} |
| 318 |
} |
} |
| 319 |
|
|
| 320 |
|
// Return the generated alias if requested. |
| 321 |
|
if ($op == 'return') { |
| 322 |
|
return $alias; |
| 323 |
|
} |
| 324 |
|
|
| 325 |
// If $pid is NULL, a new alias is created - otherwise, the existing |
// If $pid is NULL, a new alias is created - otherwise, the existing |
| 326 |
// alias for the designated src is replaced |
// alias for the designated src is replaced |
| 327 |
_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); |