itweak_upload.install in iTweak Upload 7.3
Same filename and directory in other branches
Installation code for iTweakUpload.
File
itweak_upload.installView source
<?php
/**
* @file
* Installation code for iTweakUpload.
*/
/**
* Implements hook_install().
*/
function itweak_upload_install() {
}
/**
* Implements hook_update_N().
*/
function UNUSED_itweak_upload_update_7000() {
// @todo - implement migration from itweak_upload D6
}
/**
* Implements hook_requirements().
*/
function itweak_upload_requirements($phase) {
$requirements = array();
// Ensure translations don't break at install time
$t = get_t();
switch ($phase) {
case 'install':
break;
case 'runtime':
break;
}
return $requirements;
}
/**
* Implements hook_uninstall().
*/
function itweak_upload_uninstall() {
//remove system variables
db_delete('variable')
->condition('name', 'itweak_upload_%', 'LIKE')
->execute();
cache_clear_all('variables', 'cache');
}
Functions
Name![]() |
Description |
---|---|
itweak_upload_install | Implements hook_install(). |
itweak_upload_requirements | Implements hook_requirements(). |
itweak_upload_uninstall | Implements hook_uninstall(). |
UNUSED_itweak_upload_update_7000 | Implements hook_update_N(). |