Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 2129 to 2132

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 23rd November 2020 16:05 Europe/London time based on the source file dated 13th November 2020 16:50 Europe/London time.