You are here

function url_alter_test_install in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/url_alter_test/url_alter_test.install \url_alter_test_install()
  2. 9 core/modules/system/tests/modules/url_alter_test/url_alter_test.install \url_alter_test_install()

Impelement hook_install().

File

modules/simpletest/tests/url_alter_test.install, line 6

Code

function url_alter_test_install() {

  // Set the weight of this module to one higher than forum.module.
  db_update('system')
    ->fields(array(
    'weight' => 2,
  ))
    ->condition('name', 'url_alter_test')
    ->execute();
}