You are here

function hidden_language_install in Hidden Language 7

Implements hook_install().

File

./hidden_language.install, line 6

Code

function hidden_language_install() {
  db_add_field('languages', 'hidden', array(
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
    'description' => 'Hidden flag (1 = Hidden, 0 = Visible).',
  ));
  db_update('system')
    ->fields(array(
    'weight' => 1,
  ))
    ->condition('type', 'module')
    ->condition('name', 'hidden_language')
    ->execute();
}