Topic: ($hook = get_hook('')) ? eval($hook) : null;

Why not just create a standard function such as this to prevent code repetition:

function initialize_hooks($hook_key) {
 $hook = get_hook($hook_key);
 if($hook) {
  eval($hook);
 }
 return (bool)$hook;
}

It makes much more sense in my mind hmm

Re: ($hook = get_hook('')) ? eval($hook) : null;

Because then the hook would be executed in the wrong scope.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: ($hook = get_hook('')) ? eval($hook) : null;

Oops. Never even thought of that tongue