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

void

Location

include/node_functions.php lines 2627 to 2630

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]);
    }

This article was last updated 18th May 2024 21:35 Europe/London time based on the source file dated 14th May 2024 18:25 Europe/London time.