You are here

soundmanager2.install in SoundManager2 6

Same filename and directory in other branches
  1. 6.2 soundmanager2.install
  2. 7.2 soundmanager2.install

Implementation of hook_install().

File

soundmanager2.install
View source
<?php

// Notify CCK when this module is enabled, disabled, installed,
// and uninstalled so CCK can do any necessary preparation or cleanup.

/**
 * @file
 * Implementation of hook_install().
 */
function soundmanager2_install() {
  drupal_load('module', 'content');
  content_notify('install', 'soundmanager2');
  variable_set('sm2-debug-mode', false);
  variable_set('sm2-path', 'sites/all/shared/soundmanager2');
}

/**
 * Implementation of hook_uninstall().
 */
function soundmanager2_uninstall() {
  drupal_load('module', 'content');
  content_notify('uninstall', 'soundmanager2');
  variable_del('sm2-debug-mode');
  variable_del('sm2-path');
}

/**
 * Implementation of hook_enable().
 *
 * Notify content module when this module is enabled.
 */
function soundmanager2_enable() {
  drupal_load('module', 'content');
  content_notify('enable', 'soundmanager2');
}

/**
 * Implementation of hook_disable().
 *
 * Notify content module when this module is disabled.
 */
function soundmanager2_disable() {
  drupal_load('module', 'content');
  content_notify('disable', 'soundmanager2');
}

Functions

Namesort descending Description
soundmanager2_disable Implementation of hook_disable().
soundmanager2_enable Implementation of hook_enable().
soundmanager2_install @file Implementation of hook_install().
soundmanager2_uninstall Implementation of hook_uninstall().