Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 1460 to 1464

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 17th May 2021 23:05 Europe/London time based on the source file dated 29th March 2021 12:15 Europe/London time.