# name_run_user_action_ajax()

name_run_user_action_ajax()

This function handles the add-on's $_GET actions for calls to the ajax.php file from the (public) front end of Open-Realty. Each get action should have the function to be called defined. The action must be named using this method: addon_name_description.

An example of a valid function:

<?php

function name_run_user_action_ajax() {

switch ($_GET['action']) {

case 'addon_name_showpage1':

$data = name_display_addon_page();

break;

default:

$data = '';

break;

}

return $data;

}

?>