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 1440 to 1444

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 24th November 2020 20:05 Europe/London time based on the source file dated 13th November 2020 16:50 Europe/London time.