Mercurial > defr > drupal > popups
annotate popups.install @ 3:5efa741592f9
Add an alter hook to the js list.
Makes it possible for a custom module to disable an auto-detected
JavaScript in case you just know it won't work right in a popup.
author | Franck Deroche <franck@defr.org> |
---|---|
date | Fri, 31 Dec 2010 14:02:22 +0100 |
parents | 4215c43e74eb |
children |
rev | line source |
---|---|
franck@0 | 1 <?php |
franck@1 | 2 // $Id: popups.install,v 1.4.8.3 2010/12/10 02:09:16 drewish Exp $ |
franck@0 | 3 |
franck@0 | 4 /** |
franck@0 | 5 * @file |
franck@0 | 6 */ |
franck@0 | 7 |
franck@0 | 8 /** |
franck@0 | 9 * Implementation of hook_install(). |
franck@0 | 10 * |
franck@1 | 11 * Ensures popups runs after everything else, since it short circuits in hook_init. |
franck@0 | 12 */ |
franck@0 | 13 function popups_install() { |
franck@0 | 14 db_query("UPDATE {system} SET weight = %d WHERE name = 'popups'", 9999); |
franck@0 | 15 } |