function _taxonomy_term_resource_update in Services 7.3
Same name and namespace in other branches
- 6.3 resources/taxonomy_resource.inc \_taxonomy_term_resource_update()
Update a taxonomy term based on submitted values.
Parameters
$tid: Unique identifier for the taxonomy term to update.
$term: Array of values for the taxonomy term.
Return value
Status constant indicating if term was inserted or updated.
See also
taxonomy_save_term()
1 string reference to '_taxonomy_term_resource_update'
- _taxonomy_resource_definition in resources/
taxonomy_resource.inc - @file Link general taxonomy functionalities to services module.
File
- resources/
taxonomy_resource.inc, line 411 - Link general taxonomy functionalities to services module.
Code
function _taxonomy_term_resource_update($tid, $term) {
// Adds backwards compatability with regression fixed in #1083242
$term = _services_arg_value($term, 'term');
$term = (object) $term;
$term->tid = $tid;
return taxonomy_term_save($term);
}