Révision ac1bc5de
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/sites/all/modules/captcha/captcha.install | ||
---|---|---|
97 | 97 |
'type' => 'int', |
98 | 98 |
'not null' => TRUE, |
99 | 99 |
'default' => 0, |
100 |
) |
|
100 |
),
|
|
101 | 101 |
), |
102 | 102 |
'primary key' => array('csid'), |
103 | 103 |
'indexes' => array( |
... | ... | |
109 | 109 |
} |
110 | 110 |
|
111 | 111 |
/** |
112 |
* Implementation of hook_requirements().
|
|
112 |
* Implements of hook_requirements().
|
|
113 | 113 |
*/ |
114 | 114 |
function captcha_requirements($phase) { |
115 | 115 |
$requirements = array(); |
... | ... | |
130 | 130 |
} |
131 | 131 |
|
132 | 132 |
/** |
133 |
* Implementation of hook_install().
|
|
133 |
* Implements of hook_install().
|
|
134 | 134 |
*/ |
135 | 135 |
function captcha_install() { |
136 | 136 |
$t = get_t(); |
... | ... | |
138 | 138 |
$form_ids = array( |
139 | 139 |
'contact_site_form', 'contact_personal_form', |
140 | 140 |
'user_register_form', 'user_pass', 'user_login', 'user_login_block', |
141 |
'forum_node_form' |
|
141 |
'forum_node_form',
|
|
142 | 142 |
); |
143 | 143 |
// Add form_ids of all currently known node types too. |
144 | 144 |
foreach (node_type_get_names() as $type => $name) { |
... | ... | |
167 | 167 |
} |
168 | 168 |
|
169 | 169 |
/** |
170 |
* Implementation of hook_uninstall().
|
|
170 |
* Implements of hook_uninstall().
|
|
171 | 171 |
*/ |
172 | 172 |
function captcha_uninstall() { |
173 | 173 |
drupal_uninstall_schema('captcha'); |
... | ... | |
176 | 176 |
} |
177 | 177 |
|
178 | 178 |
/** |
179 |
* Implementation of hook_update_N()
|
|
179 |
* Implements of hook_update_N().
|
|
180 | 180 |
*/ |
181 | 181 |
function captcha_update_6200() { |
182 | 182 |
$items = array(); |
... | ... | |
239 | 239 |
'type' => 'int', |
240 | 240 |
'not null' => TRUE, |
241 | 241 |
'default' => 0, |
242 |
) |
|
242 |
),
|
|
243 | 243 |
), |
244 | 244 |
'primary key' => array('csid'), |
245 | 245 |
'indexes' => array( |
... | ... | |
253 | 253 |
} |
254 | 254 |
|
255 | 255 |
/** |
256 |
* Implementation of hook_update_N() |
|
256 |
* Implements of hook_update_N(). |
|
257 |
* |
|
257 | 258 |
* Change the captcha points with the old text CAPTCHA, which was |
258 | 259 |
* removed from the 6.x-2.x branch, to the simple math CAPTCHA. |
259 | 260 |
*/ |
... | ... | |
264 | 265 |
} |
265 | 266 |
|
266 | 267 |
/** |
267 |
* Implementation of hook_update_N() |
|
268 |
* Implements of hook_update_N(). |
|
269 |
* |
|
268 | 270 |
* Add a CAPTCHA token column to captcha_sessions table. |
269 | 271 |
*/ |
270 | 272 |
function captcha_update_6202() { |
... | ... | |
274 | 276 |
} |
275 | 277 |
|
276 | 278 |
/** |
277 |
* Implementation of hook_update_N() |
|
279 |
* Implements of hook_update_N(). |
|
280 |
* |
|
278 | 281 |
* Rename the type field to captcha_type in captcha_points. |
279 | 282 |
*/ |
280 | 283 |
function captcha_update_6203() { |
Formats disponibles : Unified diff
Weekly update of contrib modules