function field_test_install

Implements hook_install().

File

modules/field/tests/field_test.install, line 11

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.