-
Notifications
You must be signed in to change notification settings - Fork 1
/
stanford_jumpstart_home.install
53 lines (41 loc) · 1.1 KB
/
stanford_jumpstart_home.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* @file
* @author Shea McKinney <[email protected]>
* Installation tasks.
*/
/**
* Implements hook_install().
*/
function stanford_jumpstart_home_install() {
variable_set('stanford_jumpstart_home_active', 'stanford_jumpstart_home_hoover');
variable_set("stanford_jumpstart_home_default_header_image", drupal_get_path("module", "stanford_jumpstart_home") . "/img/header-background-default.jpg");
// Insert menu item into shortcuts bar...
// Check for existance of the menu.
$menu = menu_load('menu-admin-shortcuts-ready-to-la');
if (!$menu) {
return;
}
$menu_link = array(
'link_path' => drupal_get_normal_path('admin/stanford-jumpstart/customize-design'),
'link_title' => t('Customize Design'),
'menu_name' => 'menu-admin-shortcuts-ready-to-la',
'weight' => -5,
);
menu_link_save($menu_link);
}
/**
* Implements hook_enable().
*/
function stanford_jumpstart_home_enable() {
}
/**
* Implements hook_disable().
*/
function stanford_jumpstart_home_disable() {
}
/**
* Implements hook_uninstall().
*/
function stanford_jumpstart_home_uninstall() {
}