Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 2203 to 2206

Definition

 
function remove_all_keyword_mappings_for_field($resource,$resource_type_field)
    {
    
ps_query("delete from resource_keyword where resource=? and resource_type_field=?",array("i",$resource,"i",$resource_type_field));
    }

This article was last updated 28th June 2022 15:05 Europe/London time based on the source file dated 27th June 2022 12:50 Europe/London time.