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