You are here

function lingotek_set_priority in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lingotek.util.inc \lingotek_set_priority()
  2. 7.2 lingotek.util.inc \lingotek_set_priority()
  3. 7.3 lingotek.util.inc \lingotek_set_priority()
  4. 7.4 lingotek.util.inc \lingotek_set_priority()
  5. 7.5 lingotek.util.inc \lingotek_set_priority()

Sets the priority of the Lingotek Translation module

2 calls to lingotek_set_priority()
lingotek_enable in ./lingotek.install
Implements hook_enable().
lingotek_update_7205 in ./lingotek.install
Ensure that the Lingotek Translation module has a weight higher than entity_translation.

File

./lingotek.util.inc, line 1095
Utility functions.

Code

function lingotek_set_priority() {
  db_update('system')
    ->fields(array(
    'weight' => 12,
  ))
    ->condition('name', 'lingotek')
    ->execute();
}