Robin,
Further testing finds that it’s when the following code gets called, the issue shows up.
if ($EXT->active_hook('weblog_entries_tagdata') === TRUE)
{
$tag_content = $EXT->call_extension('weblog_entries_tagdata', $tag_content, $occurrence, $this);
if ($EXT->end_script === TRUE) return $tag_content;
}
If I remove it from my plugin then the issue goes away however special fields such as FieldFrame ones that modify their output using the weblog_entries_tagdata hook are no long processed by it, and only raw data is output (whatever is in the DB).
Is there an alternative way to do this? Is there something specific in the weblog_entries_tagdata call that processes times? I have a function to replace standard weblog entry tags, which works fine (see below). If there’s a better way to do this I’d love to know. Any help would be appreciated. Thanks!
// replace any existing custom field tags
if( array_key_exists($var_key, $occurrence) ) {
// make sure the content is formatted per field settings
if( array_key_exists($var_key . "_ft", $occurrence) ) {
if ( ! class_exists('Typography'))
{
require PATH_CORE.'core.typography'.EXT;
}
$TYPE = new Typography;
$format = array('text_format' => $occurrence[$var_key . "_ft"]);
$content = $TYPE->parse_type($occurrence[$var_key], $format);
} else {
$content = $occurrence[$var_key];
}
$tag_content = $TMPL->swap_var_single($var_key, $content, $tag_content);
}
}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.