view popups.install @ 7:85e281a44a62 tip

Refuse to add popups.js to an ajax request that's not already a popup In some case, if you enable the "Always scan for popups links" options, Popups Ajax processing will break the original module request.
author Franck Deroche <franck@defr.org>
date Fri, 31 Dec 2010 14:13:37 +0100
parents 4215c43e74eb
children
line wrap: on
line source
<?php
// $Id: popups.install,v 1.4.8.3 2010/12/10 02:09:16 drewish Exp $

/**
 * @file
 */

/**
 * Implementation of hook_install().
 *
 * Ensures popups runs after everything else, since it short circuits in hook_init.
 */
function popups_install() {
  db_query("UPDATE {system} SET weight = %d WHERE name = 'popups'", 9999);
}