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

get_resources_matching_keyword()

Parameters

ColumnTypeDefaultDescription
$keyword
$field

Location

include/resource_functions.php lines 4448 to 4453

Definition

 
function get_resources_matching_keyword($keyword,$field)
    {
    
# Returns an array of resource references for resources matching the given keyword string.
    
$keyref=resolve_keyword($keyword);
    return 
sql_array("select distinct resource value from resource_keyword where keyword='$keyref' and resource_type_field='$field'");
    }

This article was last updated 8th July 2020 11:35 Europe/London time based on the source file dated 7th July 2020 16:18 Europe/London time.