You are here

function taxonomy_service_select_nodes in Services 5

Same name and namespace in other branches
  1. 6.3 resources/taxonomy_resource.inc \taxonomy_service_select_nodes()
  2. 6 services/taxonomy_service/taxonomy_service.inc \taxonomy_service_select_nodes()
  3. 6.2 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()

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.module, line 94
The module which exposes services related to taxonomy system

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;
}