message_subscribe.install in Message Subscribe 8
Same filename and directory in other branches
Install, update, and uninstall functions for the message_subscribe module.
File
message_subscribe.installView source
<?php
/**
* @file
* Install, update, and uninstall functions for the message_subscribe module.
*/
/**
* Implements hook_uninstall().
*
* Delete default_notifiers variable from the database.
*/
function message_subscribe_uninstall() {
\Drupal::configFactory()
->getEditable('message_subscribe.settings')
->clear('default_notifiers')
->save();
\Drupal::configFactory()
->getEditable('message_subscribe.settings')
->clear('flag_prefix')
->save();
\Drupal::configFactory()
->getEditable('message_subscribe.settings')
->clear('use_queue')
->save();
\Drupal::configFactory()
->getEditable('message_subscribe.settings')
->clear('notify_own_actions')
->save();
}
/**
* Set the debugging mode configuration option.
*/
function message_subscribe_update_8100() {
$config = \Drupal::configFactory()
->getEditable('message_subscribe.settings');
$config
->set('debug_mode', FALSE);
$config
->save();
}
Functions
Name | Description |
---|---|
message_subscribe_uninstall | Implements hook_uninstall(). |
message_subscribe_update_8100 | Set the debugging mode configuration option. |