summaryrefslogtreecommitdiffstats
path: root/ns_prod_blog.install
blob: 4ff1a192b44a854da4549a936da90023a5b4532f (plain)
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
<?php

/**
 * @file
 * Installation hooks for ns_prod_blog.
 */

/**
 * Implements hook_install().
 */
function ns_prod_blog_install() {
  // Make sure precision is enabled, since we use layouts from that theme.
  theme_enable(array('precision', 'ns_theme'));
  variable_set('theme_default', 'ns_theme');
  ns_core_enable_panels_everywhere();
  ns_core_enable_panels_node_view();
  drupal_flush_all_caches();
  if (!module_exists('ns_ch_web')) {
    variable_set('site_frontpage', 'blogs');
  }
}

/**
 * Make sure Panels reference formatter is enabled.
 */
function ns_prod_blog_update_7201() {
  module_enable(array('panels_ref_formatter'));
}