You are here

function openlayers_cck_enable in Openlayers 6

Same name and namespace in other branches
  1. 6.2 modules/openlayers_cck/openlayers_cck.install \openlayers_cck_enable()

Implementation of hook_enable().

File

modules/openlayers_cck/openlayers_cck.install, line 14
This file holds the functions for the installing and enabling of the openlayers_cck module.

Code

function openlayers_cck_enable() {

  // Let content/cck know about our actions
  drupal_load('module', 'content');
  content_notify('enable', 'openlayers_cck');

  // As needed for upgrading to 2.x (while accounting
  // for 0.x), we set a variable that can help
  // the upgrade function in 2.x understand what needs
  // to be done.  Note, it is not meant to actually
  // maintain the schema version.
  variable_set('openlayers_cck_schema_version', 6100);
}