You are here

function nodereference_count_enable in Nodereference Count 7

Same name and namespace in other branches
  1. 6 nodereference_count.install \nodereference_count_enable()

Implements hook_enable().

File

./nodereference_count.install, line 26
Install, update, and uninstall functions for the nodereference_count module.

Code

function nodereference_count_enable() {

  // Weight nodereference_count to come after other field modules.
  db_update('system')
    ->fields(array(
    'weight' => 10,
  ))
    ->condition('name', 'nodereference_count')
    ->condition('type', 'module')
    ->execute();
}