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 2640 to 2643

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 19th March 2024 08:35 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.