function adstxt_install in AdsTxt 7
Same name and namespace in other branches
- 8 adstxt.install \adstxt_install()
Implements hook_install().
File
- ./
adstxt.install, line 31 - Install, update and uninstall functions for the adstxt module.
Code
function adstxt_install() {
$content = file_get_contents(drupal_get_path('module', 'adstxt') . '/ads.txt');
variable_set('adstxt', $content);
}