You are here

function node_gallery_lightbox2_enable in Node Gallery 6.2

Implementation of hook_enable()

File

contrib/node_gallery_lightbox2/node_gallery_lightbox2.module, line 12
node_gallery_lightbox2.module

Code

function node_gallery_lightbox2_enable() {
  $weight = db_query("SELECT weight FROM {system} WHERE name = 'node_gallery' AND type = 'module'");
  db_query("UPDATE {system} SET weight = %d WHERE name = 'node_gallery_lightbox2' AND type = 'module'", $weight + 2);
}