function _rmc_token_replace in Read More Control 7
Wrapper function for token_replace().
Returned text is not sanitized.
1 call to _rmc_token_replace()
- readmorecontrol_entity_view in ./
readmorecontrol.module - Extract, update or construct the read more link.
File
- ./
readmorecontrol.module, line 668 - Defines options to control how the Read more link is displayed on teasers.
Code
function _rmc_token_replace($text, $entity_type, $entity) {
// Only process if there is a hint that a token present.
if (strpos($text, ']')) {
return token_replace($text, array(
$entity_type => $entity,
array(
'clear' => 1,
'sanitize' => 0,
),
));
}
return $text;
}