Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

remove_all_keyword_mappings_for_field()

Description

Remove all entries from resource_keyword for this field, useful if setting is changed and changed back leaving stale data

Parameters

ColumnTypeDefaultDescription
$resource int ID of resource
$resource_type_field int ID of resource type field

Return

void

Location

include/resource_functions.php lines 2105 to 2108

Definition

 
function remove_all_keyword_mappings_for_field($resource,$resource_type_field)
    {
    
sql_query("delete from resource_keyword where resource='" escape_check($resource) . "' and resource_type_field='" escape_check($resource_type_field) . "'");
    }

This article was last updated 11th July 2020 21:05 Europe/London time based on the source file dated 10th July 2020 16:06 Europe/London time.