The "Extending Smarty" page at http://wiki.civicrm.org/confluence/display/CRMDOC/Extending+Smarty gives instructions for writing custom php functions and calling them from Smarty templates used in Pages, by using the pageRun hook to add a plugin directory to your template. But this doesn't work for Forms.
For example, a custom function works from the main Case dashboard, but not from the search view when filtering Cases by status.
How do I have the plugin directory included in Forms, not just Pages?