function _ldapdata_add_taxonomy_term in LDAP integration 6
Adds a new taxonomy term
1 call to _ldapdata_add_taxonomy_term()
- _ldapdata_user_load in ./
ldapdata.module  - Implements hook_user() load operation.
 
File
- ./
ldapdata.module, line 424  - ldapdata provides data maping against ldap server.
 
Code
function _ldapdata_add_taxonomy_term($name, $vid, $description = '', $weight = 0) {
  $form_values = array();
  $form_values['name'] = $name;
  $form_values['description'] = $description;
  $form_values['vid'] = $vid;
  $form_values['weight'] = $weight;
  taxonomy_save_term($form_values);
  return $form_values['tid'];
}