Closed (fixed)
Project:
Deputy
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2012 at 22:05 UTC
Updated:
3 Feb 2012 at 07:10 UTC
Jump to comment: Most recent file
Since Deputy cannot be told to react to random module installations, there's nothing that can be done to be sure any systems defined by a given hook_deputy_default_systems() invocation are probably turned on or off along with the implementing module's status changes. However, a bit of documentation might guide developers to do something like:
/**
* Implementation of hook_install().
*/
function example_install() {
module_load_include('module', 'deputy');
deputy_activate_default_systems('example');
}
/**
* Implementation of hook_disable().
*/
function example_disable() {
module_load_include('module', 'deputy');
deputy_deactivate_systems('example');
}
/**
* Implementation of hook_uninstall().
*/
function example_uninstall() {
module_load_include('module', 'deputy');
deputy_uninstall_systems('example');
}
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | deputy.1396820-1.patch | 6.6 KB | Grayside |
Comments
Comment #1
Grayside commentedUsing hook_enable instead of hook_install. Tossing up as a patch because I havent had time to live test the code.
Comment #2
Grayside commentedComment #3.0
(not verified) commentedAdd uninstall.