You are here

function example_taxonomy_crud in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_upgrade/tests/old/samples/example.module \example_taxonomy_crud()

File

coder_upgrade/tests/old/samples/example.module, line 1190

Code

function example_taxonomy_crud() {

  // taxonomy_get_term() -- Change the next line but leave this alone
  // taxonomy_save_term() -- Change the next line but leave this alone
  // taxonomy_del_term() -- Change the next line but leave this alone
  taxonomy_get_term($tid);

  // taxonomy_term_load($tid)
  taxonomy_save_term($form_values);

  // taxonomy_term_save($term) (Old is ODD!!!)
  taxonomy_del_term($tid);

  // taxonomy_term_delete($tid)
  // taxonomy_vocabulary_load() -- Change the next line but leave this alone
  // taxonomy_save_vocabulary() -- Change the next line but leave this alone
  // taxonomy_del_vocabulary() -- Change the next line but leave this alone
  taxonomy_vocabulary_load($vid);
  taxonomy_save_vocabulary($edit);

  // taxonomy_vocabulary_save($vocabulary)
  taxonomy_del_vocabulary($vid);

  // taxonomy_vocabulary_delete($vid)
}