You are here

function _taxonomy_vocabulary_resource_update in Services 6.3

Same name and namespace in other branches
  1. 7.3 resources/taxonomy_resource.inc \_taxonomy_vocabulary_resource_update()

Update a taxonomy vocabulary based on submitted values.

Parameters

$vid: Unique identifier for the taxonomy term to retrieve.

$vocabulary: Array of values for the taxonomy vocabulary.

Return value

Status constant indicating if vocabulary was inserted or updated.

See also

taxonomy_save_vocabulary()

1 string reference to '_taxonomy_vocabulary_resource_update'
_taxonomy_resource_definition in resources/taxonomy_resource.inc
@file Link general taxonomy functionalities to services module.

File

resources/taxonomy_resource.inc, line 533
Link general taxonomy functionalities to services module.

Code

function _taxonomy_vocabulary_resource_update($vid, $vocabulary) {

  // Adds backwards compatability with regression fixed in #1083242
  $vocabulary = _services_arg_value($vocabulary, 'vocabulary');
  $vocabulary['vid'] = $vid;
  return _taxonomy_vocabulary_resource_create($vocabulary);
}