| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 | <?php/** * Implementation of hook_install(). */function fgcf_install() {  $vocabulary = array(    'name' => 'FGCF Thème',    'description' => '',    'multiple' => 0,    'required' => 1,    'hierarchy' => 0,    'relations' => 1,    'module' => 'fgcf',    'weight' => 0,    'nodes' => array('fgcf_fiche' => 1),  );  taxonomy_save_vocabulary($vocabulary);  $vocabulary = array(    'name' => 'FGCF Format de cours',    'description' => 'Toute caractéristique de la formation, comme la présence de travaux pratiques, une évaluation, etc.',    'multiple' => 0,    'required' => 0,    'hierarchy' => 0,    'relations' => 1,    'module' => 'fgcf',    'weight' => 0,    'nodes' => array(),  );  taxonomy_save_vocabulary($vocabulary);  $vocabulary = array(    'name' => 'FGCF Supports remis',    'description' => '',    'multiple' => 0,    'required' => 0,    'hierarchy' => 0,    'relations' => 1,    'module' => 'fgcf',    'weight' => 0,    'nodes' => array(),  );  taxonomy_save_vocabulary($vocabulary);  $vocabulary = array(    'name' => 'FGCF Sanction',    'description' => '',    'multiple' => 1,    'required' => 0,    'hierarchy' => 0,    'relations' => 1,    'module' => 'fgcf',    'weight' => 0,    'nodes' => array(),  );  taxonomy_save_vocabulary($vocabulary);  $vocabulary = array(    'name' => 'FGCF Public concerné',    'description' => '',    'multiple' => 0,    'required' => 0,    'hierarchy' => 0,    'relations' => 1,    'module' => 'fgcf',    'weight' => 0,    'nodes' => array(),  );  taxonomy_save_vocabulary($vocabulary);}/** * Rename "FGCF Thématique" vocabulary to "FGCF Thème", as per issue #642 * * @return array */function fgcf_update_6101() {  $sq = "UPDATE {vocabulary} SET name = 'FGCF Thème' WHERE name = 'FGCF Thématique'";  $ret = array(update_sql($sq));  return $ret;}/** * Rename "FGCF Public visé" vocabulary to "FGCF Public concerné", as per issue #642 * * @return array */function fgcf_update_6102() {  $sq = "UPDATE {vocabulary} SET name = 'FGCF Public concerné' WHERE name = 'FGCF Public visé'";  $ret = array(update_sql($sq));  return $ret;}
 |