twitter_pull.install in Twitter Pull 6
Same filename and directory in other branches
Installation routines for the Twitter Pull module.
File
twitter_pull.installView source
<?php
/**
* @file
* Installation routines for the Twitter Pull module.
*/
/**
* Implementation of hook_install().
*/
function twitter_pull_install() {
drupal_install_schema('twitter_pull');
}
/**
* Implementation of hook_uninstall().
*/
function twitter_pull_uninstall() {
drupal_uninstall_schema('twitter_pull');
}
/**
* Implementation of hook_schema().
*/
function twitter_pull_schema() {
$schema['cache_pulled_tweets'] = drupal_get_schema_unprocessed('system', 'cache');
$schema['cache_pulled_tweets']['description'] = 'Cache table for the tweets pulled by Twitter Pull module';
return $schema;
}
function twitter_pull__update_6101() {
cache_clear_all('cache_pulled_tweets');
}
Functions
Name | Description |
---|---|
twitter_pull_install | Implementation of hook_install(). |
twitter_pull_schema | Implementation of hook_schema(). |
twitter_pull_uninstall | Implementation of hook_uninstall(). |
twitter_pull__update_6101 |