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 2646 to 2649

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 23rd July 2024 21:35 Europe/London time based on the source file dated 8th July 2024 10:20 Europe/London time.