function _auto_menutitle_patternprocessor in Auto Menu Title 6.2
Helper function to generate the menu title according to the token string. Right now its only a wrapper, but if this is to be expanded, here is the place to be.
Return value
a title string
File
- ./
auto_menutitle.module, line 96 - Allows the menu title field to be automatically populated with the contents written into the node Title field
Code
function _auto_menutitle_patternprocessor($output, $node) {
if (module_exists('token')) {
$output = token_replace($output, 'node', $node);
}
if (module_exists('token')) {
$output = preg_replace('/[\\t\\n\\r\\0\\x0B]/', '', strip_tags($output));
}
return $output;
}