You are here

dxpr_theme_helper.install in DXPR Theme Helper 7

Same filename and directory in other branches
  1. 1.0.x dxpr_theme_helper.install

Install, update and uninstall functions for the module.

File

dxpr_theme_helper.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the module.
 */

/**
 * Implements hook_enable().
 */
function dxpr_theme_helper_enable() {
  if (drupal_get_path('theme', 'dxpr_free')) {
    variable_set('media_dialog_theme', 'dxpr_theme');
  }
}

/**
 * Implements hook_enable().
 */
function dxpr_theme_helper_disable() {
  variable_set('media_dialog_theme', '');
}

/**
 * Theme Media Library Popup
 */
function dxpr_theme_helper_update_7002() {
  if (drupal_get_path('theme', 'dxpr_free')) {
    variable_set('media_dialog_theme', 'dxpr_theme');
  }
}

Functions

Namesort descending Description
dxpr_theme_helper_disable Implements hook_enable().
dxpr_theme_helper_enable Implements hook_enable().
dxpr_theme_helper_update_7002 Theme Media Library Popup