function drupagram_install in Drupagram 7
Same name and namespace in other branches
- 6 drupagram.install \drupagram_install()
Implements hook_install().
File
- ./
drupagram.install, line 290 - Install, update and uninstall functions for the drupagram module.
Code
function drupagram_install() {
// Set the weight to 3, making it heavier than Pathauto.
db_update('system')
->fields(array(
'weight' => 3,
))
->condition('type', 'module')
->condition('name', 'drupagram')
->execute();
$drupagram_settings_link = l(st('here'), 'admin/config/services/drupagram');
drupal_set_message(st('The drupagram module has been enabled. You must enter your API information !drupagram_settings_link', array(
'!drupagram_settings_link' => $drupagram_settings_link,
)));
}