Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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.