forked from GetDKAN/dkan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dkan.install
31 lines (27 loc) · 995 Bytes
/
dkan.install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
* Implements hook_install().
*/
function dkan_install() {
theme_enable(array('nuboot_radix'));
theme_enable(array('seven'));
variable_set('theme_default', 'nuboot_radix');
variable_set('admin_theme', 'nuboot_radix');
variable_set('site_frontpage', 'welcome');
variable_set('page_manager_node_view_disabled', FALSE);
variable_set('page_manager_node_edit_disabled', FALSE);
variable_set('page_manager_user_view_disabled', FALSE);
// variable_set('page_manager_override_anyway', 'TRUE');
variable_set('jquery_update_jquery_version', '1.7');
// Change block titles for selected blocks.
db_query("UPDATE {block} SET title ='<none>' WHERE delta = 'main-menu' OR delta = 'login'");
// Disable selected views enabled by contributed modules.
$views_disable = array(
'og_extras_nodes' => TRUE,
'feeds_log' => TRUE,
'groups_page' => TRUE,
'og_extras_groups' => TRUE,
'dataset' => TRUE,
);
variable_set('views_defaults', $views_disable);
}