Triggered before PHP code on a page, partial or layout code is evaluated.
The event is triggered for all fields which support PHP, including page Pre and Post action codes, code blocks,
AJAX event handlers, etc. The event handler should accept the array which contains the following elements:
- page - specifies a page (Cms_Page) the code is being evaluated for.
- controller - specifies the controller (Cms_Controller) object.
- params - an array of PHP variables available in the code.
- code - specifies the PHP code to evaluate.
- object_type - specifies the CMS object type. Possible values are: CMS page, CMS template,
CMS partial, CMS page block, CMS page head.
- object_name - specifies the CMS object name.
The handler can return an array with the single element
content. In this case LemonStand will use the returned value instead
of evaluating the PHP code.