view_unpublished.install in view_unpublished 6
Same filename and directory in other branches
File
view_unpublished.installView source
<?php
/**
* Implementation of hook_install()
*/
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");
}
/**
* Make sure that the view_unpublished module runs after other access modules.
*/
function view_unpublished_update_6000() {
$ret = array();
$ret[] = update_sql("UPDATE {system} SET weight = 1 WHERE name = 'view_unpublished' AND type = 'module' AND weight = 0");
return $ret;
}
Functions
Name | Description |
---|---|
view_unpublished_install | Implementation of hook_install() |
view_unpublished_update_6000 | Make sure that the view_unpublished module runs after other access modules. |