You are here

function nodesymlinks_enable in NodeSymlinks 7

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

Implements hook_enable().

File

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

Code

function nodesymlinks_enable() {

  // Look for stored menu links to recreate.
  $result = db_query("SELECT * FROM {nodesymlinks_link_storage}");
  while ($menu_link = $result
    ->fetchAssoc()) {
    _nodesymlinks_restore_menu_link($menu_link);
  }
}