You are here

function nodesymlinks_install in NodeSymlinks 7

Same name and namespace in other branches
  1. 6 nodesymlinks.install \nodesymlinks_install()

Implements hook_install().

File

./nodesymlinks.install, line 11
Installation functions for NodeSymlinks.

Code

function nodesymlinks_install() {

  // We need to launch this module after pathauto in nodeapi, Pathauto has
  // weight 1, so we set the weight to 2.
  db_query("UPDATE {system} SET weight = 2 WHERE name = 'nodesymlinks'");

  // Initialize pahtauto settings, so pathauto option is present by default.
  variable_set('pathauto_nodesymlinks_pattern', '[nodesymlink:menu-link:parents:join-path]/[nodesymlink:menu-link:title]');
}