Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

get_resources_by_resource_data_value()

Description

Get all resources by resource_type_field and value

Parameters

ColumnTypeDefaultDescription
$resource_type_field string
$value string

Return

array

Location

include/resource_functions.php lines 7296 to 7305

Definition

 
function get_resources_by_resource_data_value($resource_type_field$value)
    {
    return 
sql_value("
        SELECT rd.resource AS `value`
          FROM resource_data AS rd
         WHERE rd.resource > 0
           AND resource_type_field = '
{$resource_type_field}'
           AND rd.`value` = '
$value'
    "
0);
    }

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.