Foren / Cotonti / Core Labs / set metas from standalone plugin

Orkan
#8772 25. Februar 2009, 03:16
I dunno why, but something tells me it isn't a good idea..

Some more specialized plugins may not work after this change.
And this will require at least 2 hooks, so why dont use hook:output for that?

$output = preg_replace(
'/<meta(.+)name="keywords"([^>]+)>/i', 
'<meta name="keywords" content="'.$my_plugin['meta_keywords'].'" />', 
$output, 1);
Perl - the only language that looks the same before and after RSA encryption.