Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

get_nodes_from_keywords()

Description

Return an array of all node IDs where the node contains any of the keyword IDs passed

Parameters

ColumnTypeDefaultDescription
$keywords array array An array of keyword IDs for the indexed content

Return

array Matching node IDs

Location

include/node_functions.php lines 1412 to 1416

Definition

 
function get_nodes_from_keywords($keywords=array())
    {
    if(!
is_array($keywords)){$keywords=array($keywords);}
    return 
sql_array("select node value FROM node_keyword WHERE keyword in (" implode(",",$keywords) . ");"); 
    }

This article was last updated 14th July 2020 00:35 Europe/London time based on the source file dated 6th July 2020 18:09 Europe/London time.