forked from aphexcreations/drupal-ajax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ajax.install
executable file
·73 lines (66 loc) · 1010 Bytes
/
ajax.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/**
* Automatic AJAX forms validation, preview, and submission
*
* @see http://drupal.org/project/ajax
* @see irc://freenode.net/#drupy
* @depends Drupal 6
* @author brendoncrawford
* @note This file uses a 79 character width limit.
*
*/
/**
* hook_install
*
* @return Bool
*/
function ajax_install() {
db_query(
"UPDATE {system} SET " .
" weight = 81 " .
"WHERE " .
" name = 'ajax' AND " .
" type = 'module' "
);
return TRUE;
}
/**
* Update 0
*
* @return Array
*/
function ajax_update_6100() {
return array();
}
/**
* Update 1
*
* @return Array
*/
function ajax_update_6101() {
return array();
}
/**
* Update 2
*
* @return Array
*/
function ajax_update_6102() {
return array();
}
/**
* Update 3
*
* @return Array
*/
function ajax_update_6103() {
$ret = array();
$ret[] = update_sql(
"UPDATE {system} SET " .
" weight = 81 " .
"WHERE " .
" name = 'ajax' AND " .
" type = 'module' "
);
return $ret;
}