You are here

eloqua.install in Eloqua 7.2

Same filename and directory in other branches
  1. 6 eloqua.install
  2. 7 eloqua.install

Eloqua install, schema, uninstall and update hooks.

File

eloqua.install
View source
<?php

/**
 * @file
 * Eloqua install, schema, uninstall and update hooks.
 */

/**
 * Implements hook_install().
 */
function eloqua_install() {
  variable_set('eloqua_site_id', 0);
  variable_set('batch_size', 50);
}

/**
 * Implements hook_uninstall().
 */
function eloqua_uninstall() {
  variable_del('eloqua_site_id');
  variable_del('batch_size');
}

/**
 * Removes variable eloqua_scripts_directory.
 *
 * This variable was used to indicate the path to the Eloqua JavaScript library.
 * That library is no longer required with this module.
 */
function eloqua_install_update_7000(&$sandbox) {
  drupal_set_message(t('You may remove the elqNow library from your sites folder. Libraries are no longer required to use this module.'));
  variable_del('eloqua_scripts_directory');
}

/**
 * Enables the eloqua_webform module and the automate module.
 */
function eloqua_install_update_7001(&$sandbox) {
  $modules = array(
    'eloqua_webform',
    'automate',
  );
  module_enable($modules, TRUE);
}

Functions

Namesort descending Description
eloqua_install Implements hook_install().
eloqua_install_update_7000 Removes variable eloqua_scripts_directory.
eloqua_install_update_7001 Enables the eloqua_webform module and the automate module.
eloqua_uninstall Implements hook_uninstall().