name_run_template_user_fields()


This function handles all the replacement of {addon_name_template_tags} with the actual content. The tag replacement can call any function that already exists in Open-Realty or you can create your own add-on specific functions. All tags setup here must also be added to the name_load_template function's array in order for Open-Realty to parse them properly.


An example of a valid function:

<?php

function name_run_template_user_fields($tag = ) {

       switch ($tag) {

               case 'addon_name_link':

                       $data = name_display_addon_link();

               break;

               default:

                       $data = '';

               break;

       }

return $data;

}

?>