Collections functions
General functions
Render functions
Theme permission functions
Resource functions

remove_field_keywords()

Description

Delete all keywords for all nodes associated with the specified field

Parameters

ColumnTypeDefaultDescription
$field integer Field ID

Return

bool

Location

include/node_functions.php lines 2597 to 2601

Definition

 
function remove_field_keywords($field)
    {
    
ps_query("DELETE nk FROM node_keyword nk LEFT JOIN node n ON n.ref=nk.node WHERE n.resource_type_field = ?", ["i",$field]);
    return;
    }

This article was last updated 3rd October 2022 12:35 Europe/London time based on the source file dated 30th September 2022 14:20 Europe/London time.