'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 Supports 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 Documents 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; } /** * Deploy feature changes, as per issue #650. * * @return array */ function fgcf_update_6103() { // Revert only the CCK field changes. features_revert(array('fgcf' => array('content'))); // OR, to revert all components for all features : // features_revert(); return array(); } /** * Rename "FGCF Supports remis" and "FGCF Format de cours" vocabularies as per issue #642 * * @return array */ function fgcf_update_6104() { $ret = array(); $sq = "UPDATE {vocabulary} SET name = 'FGCF Documents remis' WHERE name = 'FGCF Supports remis'"; $ret[] = update_sql($sq); $sq = "UPDATE {vocabulary} SET name = 'FGCF Supports de cours' WHERE name = 'FGCF Format de cours'"; $ret[] = update_sql($sq); $sq = "DELETE FROM {url_alias} WHERE src LIKE 'fgcf/%'"; $ret[] = update_sql($sq); return $ret; }