You are here

function civicrm_entity_enable in CiviCRM Entity 7

Same name and namespace in other branches
  1. 7.2 civicrm_entity.install \civicrm_entity_enable()

Implements hook_enable().

Set weight higher than CiviCRM.

@TODO Actually check what CiviCRM's weight should be.

@TODO Shouldn't this be in .install?

File

./civicrm_entity.install, line 17
Installation hooks for CiviCRM Entity.

Code

function civicrm_entity_enable() {
  db_query("UPDATE {system} SET weight = 110 WHERE name = 'civicrm_entity'");
}