Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

ajax_response_ok()

Description

Builds the correct response expected for a success request where there is data to return (e.g getting search results)

Parameters

ColumnTypeDefaultDescription
$data array Data to be returned back to the client

Return

array

Location

include/ajax_functions.php lines 74 to 79

Definition

 
function ajax_response_ok(array $data)
    {
    return array(
        
"status" => "success",
        
"data" => $data);
    }

This article was last updated 29th November 2020 05:05 Europe/London time based on the source file dated 18th May 2020 11:26 Europe/London time.