You are here

civicrm_entity.install in CiviCRM Entity 7

Same filename and directory in other branches
  1. 7.2 civicrm_entity.install

Installation hooks for CiviCRM Entity.

File

civicrm_entity.install
View source
<?php

/**
 * @file
 *  Installation hooks for CiviCRM Entity.
 */

/**
 * Implements hook_enable().
 *
 * Set weight higher than CiviCRM.
 *
 * @TODO Actually check what CiviCRM's weight should be.
 *
 * @TODO Shouldn't this be in .install?
 */
function civicrm_entity_enable() {
  db_query("UPDATE {system} SET weight = 110 WHERE name = 'civicrm_entity'");
}

Functions

Namesort descending Description
civicrm_entity_enable Implements hook_enable().