Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 19th March 2024 10:05 Europe/London time based on the source file dated 18th August 2023 11:30 Europe/London time.