function ds_test_install in Display Suite 7.2
Same name and namespace in other branches
- 8.4 tests/modules/ds_test/ds_test.module \ds_test_install()
- 8.3 tests/modules/ds_test/ds_test.module \ds_test_install()
- 7 tests/ds_test.module \ds_test_install()
Implements hook_install().
File
- tests/
ds_test.module, line 11 - Display Suite test module.
Code
function ds_test_install() {
variable_set('ds_extras_region_to_block', TRUE);
variable_set('ds_extras_switch_view_mode', TRUE);
variable_set('ds_extras_hide_page_title', TRUE);
variable_set('ds_extras_field_template', TRUE);
variable_set('ds_extras_fields_extra', TRUE);
variable_set('ds_extras_hide_page_sidebars', TRUE);
variable_set('ds_extras_fields_extra_list', "node|article|ds_extras_extra_test_field\nnode|article|ds_extras_second_field");
variable_set('ds_extras_vd', TRUE);
db_update('system')
->fields(array(
'weight' => 2,
))
->condition('name', 'ds_test')
->execute();
}