You are here

function publishcontent_install in Publish Content 5

Same name and namespace in other branches
  1. 5.2 publishcontent.install \publishcontent_install()

Implementation of hook_install().

In drupal 5, you cannot alter menu, so you have to make sure publishcontent_menu (hook_menu) is called before node_menu so that node/{$nid} is registered by publishcntent_menu rather than node_menu.

File

./publishcontent.install, line 11

Code

function publishcontent_install() {
  db_query("UPDATE {system} SET weight='-1' WHERE name = 'publishcontent' AND type='module';");
}