You are here

taxonomy_service.inc in Services 6

@author Services Dev Team

Link general taxonomy functionalities to services module.

File

services/taxonomy_service/taxonomy_service.inc
View source
<?php

/**
 * @author Services Dev Team
 * @file
 *  Link general taxonomy functionalities to services module.
 */

/**
 * get terms in vocabulary
 */
function taxonomy_service_get_tree($vid) {
  return taxonomy_get_tree($vid);
}

/**
 * select_nodes
 */
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), $fields);
  }
  return $nodes;
}

Functions

Namesort descending Description
taxonomy_service_get_tree get terms in vocabulary
taxonomy_service_select_nodes select_nodes