function url_alter_test_install
Same name in other branches
- 9 core/modules/system/tests/modules/url_alter_test/url_alter_test.install \url_alter_test_install()
- 8.9.x 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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.