Initial commit
[project/ns_prod_blog.git] / ns_prod_blog.install
1 <?php
2
3 /**
4 * @file
5 * Installation hooks for ns_prod_blog.
6 */
7
8 /**
9 * Implements hook_install().
10 */
11 function ns_prod_blog_install() {
12 // Make sure precision is enabled, since we use layouts from that theme.
13 theme_enable(array('precision', 'ns_theme'));
14 variable_set('theme_default', 'ns_theme');
15 ns_core_enable_panels_everywhere();
16 ns_core_enable_panels_node_view();
17 drupal_flush_all_caches();
18 if (!module_exists('ns_ch_web')) {
19 variable_set('site_frontpage', 'blogs');
20 }
21 }
22
23 /**
24 * Make sure Panels reference formatter is enabled.
25 */
26 function ns_prod_blog_update_7201() {
27 module_enable(array('panels_ref_formatter'));
28 }