function rb_misc_action_get_path_alias in Rules Bonus Pack 7
The 'rb_misc_action_get_path_alias' action.
File
- ./
rb_misc.rules.inc, line 804 - Miscellaneous conditions and actions for Rules.
Code
function rb_misc_action_get_path_alias($path, $language = LANGUAGE_NONE) {
// Fetch the relevant alias, for the relevant language.
$alias = path_load(array(
'source' => $path,
'language' => $language,
));
return array(
'alias' => $alias['alias'],
);
}