You are here

magic.install in Magic 7

Same filename and directory in other branches
  1. 7.2 magic.install

Install hooks for the magic module.

File

magic.install
View source
<?php

/**
 * @file
 * Install hooks for the magic module.
 */

/**
 * Implements hook_install().
 */
function magic_install() {

  // @TODO: Add in support to move Aurora settings automatically.
  db_update('system')
    ->fields(array(
    'weight' => 200,
  ))
    ->condition('name', 'magic', '=')
    ->execute();
}

/**
 * Implements hook_schema().
 */
function magic_schema() {
  $schema['cache_magic'] = drupal_get_schema_unprocessed('system', 'cache');
  return $schema;
}

Functions

Namesort descending Description
magic_install Implements hook_install().
magic_schema Implements hook_schema().