openlayers_cck.install in Openlayers 6.2
Same filename and directory in other branches
This file holds the functions for the installing and enabling of the openlayers_cck module.
File
modules/openlayers_cck/openlayers_cck.installView source
<?php
/**
* @file
* This file holds the functions for the installing
* and enabling of the openlayers_cck module.
*
* @ingroup openlayers
*/
/**
* Implementation of hook_enable().
*/
function openlayers_cck_enable() {
// Let content/cck know about our actions
drupal_load('module', 'content');
content_notify('enable', 'openlayers_cck');
}
/**
* Implementation of hook_disable().
*/
function openlayers_cck_disable() {
// Let content/cck know about our actions
drupal_load('module', 'content');
content_notify('disable', 'openlayers_cck');
}
/**
* Implementation of hook_install().
*/
function openlayers_cck_install() {
// Let content/cck know about our actions
drupal_load('module', 'content');
content_notify('install', 'openlayers_cck');
}
/**
* Implementation of hook_uninstall().
*/
function openlayers_cck_uninstall() {
// Let content/cck know about our actions
drupal_load('module', 'content');
content_notify('uninstall', 'openlayers_cck');
// Get module variables
$results = db_query("SELECT v.name FROM {variable} AS v WHERE v.name LIKE '%s%%'", 'openlayers_cck_');
// Remove variables
while ($row = db_fetch_array($results)) {
variable_del($row['name']);
}
}
Functions
Name![]() |
Description |
---|---|
openlayers_cck_disable | Implementation of hook_disable(). |
openlayers_cck_enable | Implementation of hook_enable(). |
openlayers_cck_install | Implementation of hook_install(). |
openlayers_cck_uninstall | Implementation of hook_uninstall(). |