You are here

function taxonomy_service_select_nodes in Services 6.2

Same name and namespace in other branches
  1. 5 services/taxonomy_service/taxonomy_service.module \taxonomy_service_select_nodes()
  2. 6.3 resources/taxonomy_resource.inc \taxonomy_service_select_nodes()
  3. 6 services/taxonomy_service/taxonomy_service.inc \taxonomy_service_select_nodes()
  4. 7.3 resources/taxonomy_resource.inc \taxonomy_service_select_nodes()
  5. 7 services/taxonomy_service/taxonomy_service.inc \taxonomy_service_select_nodes()

Services interface to taxonomy_select_nodes().

Note that where taxonomy_select_nodes() returns the results of a db_query(), this function returns an array of node objects.

Return value

An array of node objects.

See also

taxonomy_select_nodes().

1 string reference to 'taxonomy_service_select_nodes'
taxonomy_service_service in services/taxonomy_service/taxonomy_service.module
Implementation of hook_service().

File

services/taxonomy_service/taxonomy_service.inc, line 28
Link general taxonomy functionalities to services module.

Code

function taxonomy_service_select_nodes($tids = array(), $fields = array(), $operator = 'or', $depth = 0, $pager = TRUE, $order = 'n.sticky DESC, n.created DESC') {
  $result = taxonomy_select_nodes($tids, $operator, $depth, $pager, $order);
  while ($node = db_fetch_object($result)) {
    $nodes[] = services_node_load(node_load($node->nid), $fields);
  }
  return $nodes;
}