/** * @file * Install, update, and uninstall functions specific for module. */ /** * Implements hook_install(). */ function ephy_site_install() { } /** * Enable modules and features. */ function ephy_site_update_7001() { module_enable( array( 'feature_article_content_type', 'feature_formulaire_contact', 'feature_menu_footer', 'feature_menu_rubriques_vocabulary', ) ); } /** * Populate Rubriques taxonomy terms. */ function ephy_site_update_7002() { ephy_site_prepopulate_taxonomy_rubriques(); } /** * Enable modules and features. */ function ephy_site_update_7003() { module_enable( array( 'feature_glossaire', 'feature_ordre_des_articles', ) ); } /** * Enable modules and features. */ function ephy_site_update_7004() { module_enable( array( 'date', 'entity', 'entityreference', 'job_scheduler', 'feature_ref_content_type', 'feature_refetdecision_content_type', 'feature_decimaletunite_content_type', 'feature_autrenom_content_type', 'feature_conditionemploiprd_content_type', ) ); } /** * Enable modules and features. */ function ephy_site_update_7005() { module_enable( array( 'feature_usage_content_type', 'feature_intrant_content_type' ) ); } /** * Enable modules and features. */ function ephy_site_update_7006() { module_enable( array( 'feature_usage_content_type', 'feature_intrant_content_type' ) ); } /** * Enable modules and features. */ function ephy_site_update_7007() { module_enable( array( 'feature_ppp_content_type', ) ); } /** * Enable modules and features. */ function ephy_site_update_7008() { module_enable( array( 'feature_actualite_content_type', 'feature_homepage', 'feature_index_recherche', 'feature_recherche_avancee', 'feature_search_server', ) ); } /** * Enable modules and features. */ function ephy_site_update_7009() { module_enable( array( 'search_api_facetapi', 'search_api_views', 'search_api_sorts', ) ); } /** * Enable modules and features. */ function ephy_site_update_7010() { module_enable( array( 'panels_everywhere', 'sass', 'feature_default_site_template', ) ); } /** * Enable modules and features. */ function ephy_site_update_7011() { module_enable( array( 'feature_themes_settings', ) ); } /** * Enable modules and features. */ function ephy_site_update_7012() { module_enable( array( 'features_extra', 'webform_features', 'feature_webform_content_type', 'feature_wysiwyg', ) ); } /** * Enable modules and features. */ function ephy_site_update_7013() { module_enable( array( 'webform_features', ) ); } /** * Enable and set default theme. */ function ephy_site_update_7014() { // Enable necessary themes and set default themes. $theme_list = array( 'ephy_front', ); theme_enable($theme_list); variable_set('theme_default', 'ephy_front'); } /** * Enable modules and features. */ function ephy_site_update_7015() { module_enable( array( 'feature_wysiwyg', ) ); } /** * Implements hook_update_N(). * Suppression des champs {ref_type}, {libelle} et {lib_court} du type de contenu [conditionEmploiPrd}. */ function ephy_site_update_7016() { $instance = field_info_instance('node', 'field_libelle', 'conditionEmploiPrd'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_lib_court', 'conditionEmploiPrd'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_ref_type', 'conditionEmploiPrd'); if (!empty($instance)) { field_delete_instance($instance); } } /** * Enable modules and features. */ function ephy_site_update_7017() { module_enable( array( 'feature_conditionemploiprd_content_type' ) ); } /** * Activation des modules pour l'import des données. */ function ephy_site_update_7018() { module_enable( array( 'feeds', 'feeds_xpathparser', 'entityreference_feeds' ) ); } /** * Activation des modules pour l'import des données. (manque certains modules). */ function ephy_site_update_7019() { module_enable( array( 'feeds_import', 'feeds_ui', ) ); } /** * Enable modules and features. */ function ephy_site_update_7020() { module_enable( array( 'feature_actualite_template', 'feature_article_template', ) ); } /** * Disable modules and features. */ function ephy_site_update_7021() { module_disable( array( 'feature_actualite_template', 'feature_article_template', ) ); } /** * Enable modules and features. */ function ephy_site_update_7022() { module_enable( array( 'feature_templates_pages', ) ); } /** * Ajout de l'importer {titulaire} */ function ephy_site_update_7023() { module_enable( array( 'feature_titulaire_importer', ) ); } /** * Enable modules and features. */ function ephy_site_update_7024() { module_enable( array( 'librairies', 'prepro', 'sassy', ) ); } /** * Enable modules and features. */ function ephy_site_update_7025() { module_disable( array( 'sass', ) ); } /** * Enable modules and features. */ function ephy_site_update_7026() { module_enable( array( 'libraries', 'prepro', 'sassy', ) ); } /** * Enable modules and features. */ function ephy_site_update_7027() { module_enable( array( 'feature_prepro_settings', ) ); } /** * Implements hook_update_N(). * Suppression des champs {ref_type}, {libelle} et {lib_court} du type de contenu {autreNom}. */ function ephy_site_update_7028() { $instance = field_info_instance('node', 'field_libelle', 'autreNom'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_lib_court', 'autreNom'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_ref_type', 'autreNom'); if (!empty($instance)) { field_delete_instance($instance); } } /** * Mise à jour du type de contenu {autreNom}. */ function ephy_site_update_7029() { module_enable( array( 'feature_autrenom_content_type' ) ); } /** * Implements hook_update_N(). * Enable feature_liste_actualites. */ function ephy_site_update_7030() { module_enable( array( 'feature_liste_actualites' ) ); } /** * {ref} : suppression du champ {ref_id} */ function ephy_site_update_7031() { $instance = field_info_instance('node', 'field_ref_id', 'ref'); if (!empty($instance)) { field_delete_instance($instance); } } /** * Modification feature {ref} */ function ephy_site_update_7032() { module_enable( array( 'feature_ref_content_type' ) ); } /** * {usage} : suppression des champs. */ function ephy_site_update_7033() { $instance = field_info_instance('node', 'field_delai_avant_recolte_bbch', 'usage'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_culture', 'usage'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_portee_usage_list', 'usage'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_condition_emploi', 'usage'); if (!empty($instance)) { field_delete_instance($instance); } } /** * Modification feature {ref} */ function ephy_site_update_7034() { module_enable( array( 'feature_usage_content_type' ) ); } /** * Modification feature {ref} */ function ephy_site_update_7035() { module_enable( array( 'ephy_import', 'feature_usage_importer' ) ); } /** * Populate Rubriques taxonomy terms. */ function ephy_site_update_7036() { ephy_site_prepopulate_taxonomy_type_produit(); ephy_site_prepopulate_taxonomy_etat_produit(); ephy_site_prepopulate_taxonomy_type_ref(); } /** * Enable module Better Formats. */ function ephy_site_update_7037() { module_enable( array( 'better_formats', ) ); } /** * Enable module Better Formats. */ function ephy_site_update_7038() { module_enable( array( 'feature_substance_content_type', 'feature_substance_importer' ) ); } /** * Enable feature_pathauto_patterns. */ function ephy_site_update_7039() { module_enable( array( 'feature_pathauto_patterns', ) ); } /** * Enable Devel generate module. */ function ephy_site_update_7040() { module_enable( array( 'devel_generate', ) ); } /** * {intrant} : suppression des champs. */ function ephy_site_update_7041() { $instance = field_info_instance('node', 'field_type_demande', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_demandeur', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_type_commercial', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_date_retrait_produit', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_motivation_general_decisio', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_fonction_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_type_formulation_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_mention_autorise_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_autre_nom_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_condition_emploi_prd_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_titulaire', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } } /** * Enable module Better Formats. */ function ephy_site_update_7042() { module_enable( array( 'field_group', 'field_group_multiple', 'feature_intrant_content_type' ) ); } /** * Modification type de contenu {intrant} */ function ephy_site_update_7043() { module_enable( array( 'feature_titulaire_importer', 'feature_substance_active_importer', 'feature_intrant_content_type', 'feature_ppp_intrant_importer' ) ); } /** * Maj importer {ppp-intrant} */ function ephy_site_update_7044() { module_enable( array( 'feature_ppp_intrant_importer' ) ); } /** * Ajout importer pour {PPP} */ function ephy_site_update_7045() { module_enable( array( 'feature_ppp_importer' ) ); } /** * Enable feature_images_styles. */ function ephy_site_update_7046() { module_enable( array( 'feature_images_styles' ) ); } /** * Enable feature_facets. */ function ephy_site_update_7047() { module_enable( array( 'feature_facets' ) ); } /** * Enable module Better Formats. */ function ephy_site_update_7048() { module_enable( array( 'better_formats', ) ); } /** * Enable feature. */ function ephy_site_update_7049() { module_enable( array( 'feature_date_format', ) ); } /** * Enable modules and features. */ function ephy_site_update_7050() { module_enable( array( 'date_popup', 'date_views', ) ); } /** * Maj feature type de contenu {PPP}, {intrant} et {usage} */ function ephy_site_update_7051() { module_enable( array( 'feature_ppp_content_type', 'feature_intrant_content_type', 'feature_usage_content_type', ) ); } /** * Maj feature {melange} et {adjuvant} */ function ephy_site_update_7052() { module_enable( array( 'feature_adjuvant_content_type', 'feature_melange_content_type', ) ); } /** * Ajout type de contenu {culture-preconise}, {mfsc} et {produit-mixte} */ function ephy_site_update_7053() { module_enable( array( 'feature_culture_preconise_content_type', 'feature_mfsc_content_type', 'feature_produit_mixte_content_type' ) ); } /** * Maj type de contenu {substance} */ function ephy_site_update_7054() { module_enable( array( 'feature_substance_content_type', ) ); } /** *Ajout type de contenu {firme} */ function ephy_site_update_7055() { module_enable( array( 'feature_firme_content_type', ) ); } /** * Ajout importer {pays} et {firme} */ function ephy_site_update_7056() { module_enable( array( 'feature_firme_importer', ) ); } /** * Maj importer {substance} */ function ephy_site_update_7057() { module_enable( array( 'feature_substance_importer', ) ); } /** * Maj type de contenu {usage} */ function ephy_site_update_7058() { $instance = field_info_instance('node', 'field_mention_autorise_list', 'usage'); if (!empty($instance)) { field_delete_instance($instance); } module_enable( array( 'feature_mention_autorisee_ref_content_type', 'feature_usage_content_type', ) ); } /** * Maj type de contenu {usage} */ function ephy_site_update_7059() { $instance = field_info_instance('node', 'field_id_usage', 'usage'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_portee_usage', 'usage'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_methode_app', 'usage'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_grp_org_nuisible', 'usage'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_fonction', 'usage'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_milieu', 'usage'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_type_usage', 'usage'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_culture_retenue_portee_lis', 'usage'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_filiere', 'usage'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_mention_autorise_list', 'usage'); if (!empty($instance)) { field_delete_instance($instance); } module_disable( array( 'feature_mention_autorisee_ref_content_type', ) ); module_enable( array( 'feature_usage_ref_content_type', 'feature_usage_content_type', ) ); } /** * Ajout type de contenu qui sont référencés par un {intrant} */ function ephy_site_update_7060() { module_enable( array( 'feature_intrant_ref_content_type', ) ); $instance = field_info_instance('node', 'body', 'type_formulation_ref'); if (! empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'body', 'substance_ref'); if (! empty($instance)) { field_delete_instance($instance); } // CLP $instance = field_info_instance('node', 'body', 'picto_danger_clp_ref'); if (! empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'body', 'classe_danger_clp_ref'); if (! empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'body', 'mention_danger_clp_ref'); if (! empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'body', 'phrase_risque_clp_ref'); if (! empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'body', 'phrase_prudence_clp_ref'); if (! empty($instance)) { field_delete_instance($instance); } // DSD $instance = field_info_instance('node', 'body', 'classe_danger_dsd_ref'); if (! empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'body', 'phrase_risque_dsd_ref'); if (! empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'body', 'phrase_prudence_dsd_ref'); if (! empty($instance)) { field_delete_instance($instance); } } /** * Maj type de contenu {intrant} */ function ephy_site_update_7061() { $instance = field_info_instance('node', 'field_titulaire', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_type_commercial', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_gamme_usage', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_type_nom_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_condition_emploi_cat_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_fonction_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_type_formulation_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_mention_autorise_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_picto_danger_clp_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_classe_danger_clp_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_mention_danger_clp_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_phrase_risque_clp_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_phrase_prudence_clp_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_picto_danger_dsd_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_classe_danger_dsd_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_phrase_risque_dsd_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_phrase_prudence_dsd_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_substance_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_famille_chimique_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } module_enable( array( 'feature_intrant_content_type', ) ); } /** * Maj type de contenu {substance} */ function ephy_site_update_7062() { $instance = field_info_instance('node', 'field_type_nom_list', 'substance'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_famille_chimique', 'substance'); if (!empty($instance)) { field_delete_instance($instance); } module_enable( array( 'feature_substance_content_type', ) ); } /** * Nettoyage */ function ephy_site_update_7063() { module_enable( array( 'feature_substance_ref_importer', ) ); } /** * Nettoyage */ function ephy_site_update_7064() { module_disable( array( 'feature_firme_importer', 'feature_ppp_importer', 'feature_ppp_intrant_importer', 'feature_substance_active_importer', 'feature_substance_importer', 'feature_titulaire_importer', 'feature_usage_importer', ) ); } /** * Maj {firme} */ function ephy_site_update_7065() { $instance = field_info_instance('node', 'field_pays', 'firme'); if (!empty($instance)) { field_delete_instance($instance); } } /** * Ajout modules transliteration et imagecache_token */ function ephy_site_update_7066() { module_enable( array( 'transliteration', 'imagecache_token' ) ); } /** * Ajout de la feature pour les roles et droits. Pensez à rajouter les nouveaux droits dans cette feature. */ function ephy_site_update_7067() { module_enable( array( 'feature_roles_droits', ) ); } /** * Désactivation du theme bartik */ function ephy_site_update_7068() { theme_disable(array('bartik')); } /** * Ajout des importer */ function ephy_site_update_7069() { module_enable( array('feature_all_importer') ); } /** * Ajout taxonomie {mode-de-composition} */ function ephy_site_update_7070() { ephy_site_prepopulate_taxonomy_mode_composition(); } /** * Ajout MEM Cache */ function ephy_site_update_7071() { module_enable( array('memcache') ); } /** * Ajout Entity translation, Internationalization et Variable */ function ephy_site_update_7072() { module_enable( array( 'entity_translation', 'i18n', 'variable' ) ); } /** * */ function ephy_site_update_7073() { module_enable( array( 'feature_config_external_link', ) ); } /** * Maj importer */ function ephy_site_update_7074() { module_enable(array('feeds_tamper', 'feeds_tamper_ui')); module_disable(array('entityreference_feeds')); } /** * Maj settings content type */ function ephy_site_update_7075() { module_enable(array('feature_parametres_content_type')); } /** * MAJ module translation */ function ephy_site_update_7076() { module_enable(array('entity_translation_i18n','entity_translation_upgrade','i18n_menu','i18n_translation')); } /** * Ajout de la configuration de solr dans settings.php */ function ephy_site_update_7077() { module_enable(array('search_api_override')); } /** * MAJ search api */ function ephy_site_update_7078() { module_disable(array('search_api_override')); module_enable(array('search_api_solr_overrides')); } /** * Ajout de l10n_update */ function ephy_site_update_7079() { module_enable(array('l10n_update')); } /** * disable feature roles droits */ function ephy_site_update_7080() { module_disable( array( 'feature_roles_droits', ) ); } /** * disable module #apachesolr# */ function ephy_site_update_7081() { module_disable( array( 'apachesolr', ) ); } /** * disable module #apachesolr# */ function ephy_site_update_7082() { module_enable( array( 'taxonomy_access', ) ); } /** * Enable feature feature_lexique_deconnecte. */ function ephy_site_update_7083() { module_enable( array( 'feature_lexique_deconnecte', ) ); } /** * Enable feature feature_permissions. */ function ephy_site_update_7084() { module_enable( array( 'feature_permissions', ) ); } /** * Enable feature feature_taxonomy_menu. */ function ephy_site_update_7085() { module_enable( array( 'feature_taxonomy_menu', ) ); } /** * Enable module easy_breadcrumb. */ function ephy_site_update_7086() { module_enable( array( 'easy_breadcrumb', ) ); } /** * Disable module easy_breadcrumb. */ function ephy_site_update_7087() { module_disable( array( 'easy_breadcrumb', ) ); } /** * Disable module easy_breadcrumb. */ function ephy_site_update_7088() { module_disable( array( 'easy_breadcrumb', ) ); } /** * Disable module taxonomy_access. */ function ephy_site_update_7089() { module_disable( array( 'taxonomy_access', ) ); } /** * Enable module taxonomy_access_fix. */ function ephy_site_update_7090() { module_disable( array( 'taxonomy_access_fix', ) ); } /** * Enable themes. */ function ephy_site_update_7091() { variable_set('admin_theme', 'boklee_ephy'); variable_set('theme_default', 'ephy_front'); } /** * Enable themes. */ function ephy_site_update_7092() { // Get all the available themes. $themes = list_themes(); // If boklee_ephy status is 0 i.e. disabled. if($themes['boklee_ephy']->status == 0) { // Enable theme. theme_enable(array('boklee_ephy')); } // If ephy_front status is 0 i.e. disabled. if($themes['ephy_front']->status == 0) { // Enable theme. theme_enable(array('ephy_front')); } } /** * Enable feature metatag */ function ephy_site_update_7093() { module_enable(array('feature_metatag')); } /** * Enable module jquery_update */ function ephy_site_update_7094() { module_enable(array('jquery_update')); } /** * Enable module view_unpublished. */ function ephy_site_update_7095() { module_enable(array('view_unpublished')); } /** * Disable module view_unpublished. */ function ephy_site_update_7096() { module_disable(array('view_unpublished')); } /** * Disable module jquery_update */ function ephy_site_update_7097() { module_disable(array('jquery_update')); } /** * Suppression champs {variant_list} (mauvais type). */ function ephy_site_update_7098() { $instance = field_info_instance('node', 'field_variant_list', 'intrant'); if (!empty($instance)) { field_delete_instance($instance); } $instance = field_info_instance('node', 'field_variant_list', 'substance'); if (!empty($instance)) { field_delete_instance($instance); } } function ephy_site_update_7099() { ephy_site_prepopulate_taxonomy_etat_produit_maj(); } /** * Change the length of the field : field_culture_commentaire */ function ephy_site_update_7100 () { ephy_site_change_text_field_max_length('field_culture_commentaire', 500); } function ephy_site_update_7101(){ features_revert_module('feature_usage_content_type'); features_revert_module('feature_index_recherche'); features_revert_module('feature_recherche_avancee'); features_revert_module('feature_recherche_avancee'); features_revert_module('feature_all_importer'); } /** * Activer cURL HTTP Request */ function ephy_site_update_7102(){ module_enable(array('chr')); variable_set('drupal_http_request_function', 'chr_curl_http_request'); } /** * activer la feature configuration : jquery update + */ function ephy_site_update_7103(){ module_enable(array('features_configurations')); } /** * Create node decimaletunite */ function ephy_site_update_7104(){ $node_decimaletunite = new stdClass(); $node_decimaletunite->type = 'decimaletunite'; node_object_prepare($node_decimaletunite); $node_decimaletunite->title = '00000000000000000000'; $node_decimaletunite->field_unite['und'][0]['value'] = 'non renseigné'; $node_decimaletunite->status = 1; $node_decimaletunite->uid = 1; node_save($node_decimaletunite); $node_famille_chimique_ref = new stdClass(); $node_famille_chimique_ref->type = 'famille_chimique_ref'; node_object_prepare($node_famille_chimique_ref); $node_famille_chimique_ref->title = '00000000000000000000'; $node_famille_chimique_ref->status = 1; $node_famille_chimique_ref->uid = 1; node_save($node_famille_chimique_ref); } /** * Import captcha translation */ function ephy_site_update_7105(){ locale_system_update(array('ephy_site')); } /** * Change the length of the field : field_nom_list */ function ephy_site_update_7106 () { ephy_site_change_text_field_max_length('field_nom_list', 500); } function ephy_site_update_7107(){ $files= array( "ephy_site-7.x.fr.po" ); foreach($files as $poFile){ $file = new stdClass; $file->uri = DRUPAL_ROOT ."/sites/all/modules/custom/ephy_site/translations/".$poFile; $file->filename = basename($file->uri); watchdog('ephy','Import traduction : '.$poFile,WATCHDOG_INFO); _locale_import_po($file, 'fr', LOCALE_IMPORT_OVERWRITE, 'default'); } } /** * Install paragraphs module and faq feature */ function ephy_site_update_7108(){ if (module_exists('paragraphs')) { module_enable(['paragraphs']); } if (module_exists('feature_faq')) { module_enable(['feature_faq']); } } /** * Enable recaptcha module */ function ephy_site_update_7109(){ if (module_exists('recaptcha')) { module_enable(['recaptcha']); } } /** * Delete old field_poids in faq content type */ function ephy_site_update_7110(){ if ($instance = field_info_instance('node', 'field_poids', 'faq')) { field_delete_instance($instance); } } /** * Change mail systemconfig */ function ephy_site_update_7111(){ if (module_exists('mailsystem')) { module_enable(['mailsystem']); } mailsystem_set( array( mailsystem_default_id() => array( 'format' => 'MimeMailSystem', 'mail' => 'SmtpMailSystem', ), ) ); } | ephy
Accueil
Recherche avancée
Logo ANSES
5 résultats dans les produits phytopharmaceutiques
Mot clé :
oignons

Usage

Formulation

Trier par :