1
|
<?php
|
2
|
// $Id$
|
3
|
|
4
|
/**
|
5
|
* Implementation of hook_install().
|
6
|
*/
|
7
|
function cdm_dataportal_install(){
|
8
|
db_query(_get_sql_fix_module_weight());
|
9
|
}
|
10
|
|
11
|
|
12
|
/**
|
13
|
* Implementation of hook_api_update_N().
|
14
|
*
|
15
|
* Update 1 for version 5.x-1.0
|
16
|
*/
|
17
|
function cdm_dataportal_update_5101() {
|
18
|
$items = array();
|
19
|
$items[] = update_sql(_get_sql_fix_module_weight());
|
20
|
return $items;
|
21
|
}
|
22
|
|
23
|
// ------------------------- SQL Scripts ------------------------ //
|
24
|
|
25
|
|
26
|
function _get_sql_fix_module_weight() {
|
27
|
return "UPDATE {system} SET weight = 20 WHERE name = 'cdm_dataportal'";
|
28
|
}
|