Skip to content
i18ncontent.install 1.04 KiB
Newer Older
<?php
/**
 * Installation script for i18ncontent module
 */
function i18ncontent_install() {
  // Create strings in the extended localization system
  // There seems to be some issue with module loading on install/update
/**
 * Implementatin of hook_enable()
 */
function i18ncontent_enable() {
  i18ncontent_locale_refresh();
}
 * This function depends on i18nstrings, so it must be run on _disable() better than uninstall()
  foreach (node_get_types() as $type) {
    if (!$type->help && ($help = ts("nodetype:$type->type:help", $langcode))) {
      $type->help = $help;
      node_type_save($type);
    }
  }
  // @ TODO Some more clean up for strings
}

/**
 * The old module with the same name had a different approach, so the update will be full install
 */
function i18ncontent_update_1() {
  $ret = array();
  drupal_load('module', 'i18ncontent');