You are here

function view_unpublished_install in view_unpublished 6

Same name and namespace in other branches
  1. 8 view_unpublished.install \view_unpublished_install()
  2. 5 view_unpublished.install \view_unpublished_install()

Implementation of hook_install()

File

./view_unpublished.install, line 6

Code

function view_unpublished_install() {

  // Make sure that the view_unpublished module runs after other access modules.
  db_query("UPDATE {system} SET weight = 1 WHERE name = 'view_unpublished' AND type = 'module' AND weight = 0");
}