/*
* -- Registration: --
* $GLOBALS['MERCONIS_HOOKS']['replaceWidgetTemplateForReview'][] = array('myMerconisHookClass', 'myReplaceWidgetTemplateForReview');
*
* -- Invocation: --
* When a form field is rendered while creating an automatic form review
*
* -- Parameters: --
* 1. $arrWidgetTypesToParse - an array that holds form field type names as keys and the names of templates to use for rendering the specific form field review as values
* 2. $objField
* 3. $objWidget
* 4. $strForm
* 5. $arrForm
*
* -- Return value: --
* $arr_item
*
* -- Objective: --
* e.g. customizing the way an automatically created form review renders specific form field types
*
*/
public function myReplaceWidgetTemplateForReview($arrWidgetTypesToParse, $objField, $objWidget, $strForm, $arrForm) {
/*
* In this example, we make sure that in a form review a calendar field, which comes with a third party extension
* that Merconis normally would know nothing about, is being rendered as simple text.
*/
$arrWidgetTypesToParse['calendar'] = 'form_ls_shop_reviewWidget';
return $arrWidgetTypesToParse;
}