Well, instead of adding
Code:
if ($badfadf)
{
$post['blabdfd'] = '234324'324'324234'34;
$do
$some
$very
$complicated
$stuff
}
else
{
$more stuff
}
to, for example, the hook "post_display_complete", you move the code to a function and just call the function "do_very_complicated_things()" in the hook "post_display_complete". The function itself is in the file plugins.php and gets include('plugins.php'); in the hook "global_start"