You are here

function tvi_install in Taxonomy Views Integrator 6

Same name and namespace in other branches
  1. 8 tvi.install \tvi_install()
  2. 7 tvi.install \tvi_install()

Implements hook_install().

See also

http://api.drupal.org/api/function/hook_install/6

Related topics

File

./tvi.install, line 79
Installation file for TVI module.

Code

function tvi_install() {

  // Create tables.
  drupal_install_schema('tvi');

  // Ensure weights are ok.
  $view_info = db_fetch_object(db_query('SELECT s.weight FROM {system} s WHERE s.name = \'views\' LIMIT 1'));
  db_query("UPDATE {system} SET weight = " . ($view_info->weight + 5) . " WHERE name = 'tvi'");
}