dkan.install 995 Bytes
Newer Older
acouch's avatar
acouch committed
1 2 3 4 5 6
<?php

/**
 * Implements hook_install().
 */
function dkan_install() {
acouch's avatar
acouch committed
7
  theme_enable(array('nuboot_radix'));
acouch's avatar
acouch committed
8
  theme_enable(array('seven'));
acouch's avatar
acouch committed
9 10
  variable_set('theme_default', 'nuboot_radix');
  variable_set('admin_theme', 'nuboot_radix');
acouch's avatar
acouch committed
11 12
  variable_set('site_frontpage', 'welcome');
  variable_set('page_manager_node_view_disabled', FALSE);
acouch's avatar
acouch committed
13
  variable_set('page_manager_node_edit_disabled', FALSE);
acouch's avatar
acouch committed
14
  variable_set('page_manager_user_view_disabled', FALSE);
acouch's avatar
acouch committed
15
 // variable_set('page_manager_override_anyway', 'TRUE');
acouch's avatar
acouch committed
16
  variable_set('jquery_update_jquery_version', '1.7');
acouch's avatar
acouch committed
17 18 19

  // Change block titles for selected blocks.
  db_query("UPDATE {block} SET title ='<none>' WHERE delta = 'main-menu' OR delta = 'login'");
acouch's avatar
acouch committed
20 21 22 23 24

  // Disable selected views enabled by contributed modules.
  $views_disable = array(
    'og_extras_nodes' => TRUE,
    'feeds_log' => TRUE,
acouch's avatar
acouch committed
25 26 27
    'groups_page' => TRUE,
    'og_extras_groups' => TRUE,
    'dataset' => TRUE,
acouch's avatar
acouch committed
28 29 30
  );
  variable_set('views_defaults', $views_disable);

acouch's avatar
acouch committed
31
}