magic.install in Magic 7
Same filename and directory in other branches
Install hooks for the magic module.
File
magic.installView 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
Name![]() |
Description |
---|---|
magic_install | Implements hook_install(). |
magic_schema | Implements hook_schema(). |