function field_test_install in Drupal 7
Implements hook_install().
File
- modules/
field/ tests/ field_test.install, line 11 - Install, update and uninstall functions for the field_test module.
Code
function field_test_install() {
// hook_entity_info_alter() needs to be executed as last.
db_update('system')
->fields(array(
'weight' => 1,
))
->condition('name', 'field_test')
->execute();
}