You are here

i18n_boxes.install in Boxes translation 7

Same filename and directory in other branches
  1. 6 i18n_boxes.install

Install, update and uninstall functions for the i18n_boxes module.

File

i18n_boxes.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the i18n_boxes module.
 */

/**
 * Implements hook_install().
 */
function i18n_boxes_install() {

  // Update the weight of this module to come later than i18n_block in the
  // module chain.
  $weight = db_select('system', 's')
    ->fields('s', array(
    'weight',
  ))
    ->condition('name', 'i18n_block', '=')
    ->execute()
    ->fetchField();
  db_update('system')
    ->fields(array(
    'weight' => $weight + 1,
  ))
    ->condition('name', 'i18n_boxes', '=')
    ->execute();
}

Functions

Namesort descending Description
i18n_boxes_install Implements hook_install().