You are here

function forward_install in Forward 6

Same name and namespace in other branches
  1. 8.3 forward.install \forward_install()
  2. 8 forward.install \forward_install()
  3. 8.2 forward.install \forward_install()
  4. 5 forward.install \forward_install()
  5. 7.3 forward.install \forward_install()
  6. 7 forward.install \forward_install()
  7. 7.2 forward.install \forward_install()
  8. 4.x forward.install \forward_install()
  9. 4.0.x forward.install \forward_install()

File

./forward.install, line 2

Code

function forward_install() {
  drupal_install_schema('forward');
  variable_set('forward_theme_template', 1);
  db_query("INSERT INTO {forward_statistics} (nid, last_forward_timestamp, forward_count, clickthrough_count) values(0, 0, 0, 0)");
  db_query("INSERT INTO {forward_statistics} (nid, last_forward_timestamp, forward_count, clickthrough_count) SELECT n.nid, 0, 0, 0 FROM {node} n");
}