function moopapi_init in Module Object Oriented Programming API 6.2
Same name and namespace in other branches
- 6 moopapi.module \moopapi_init()
- 7.2 moopapi.module \moopapi_init()
- 7 moopapi.module \moopapi_init()
Implementation of hook_init().
File
- ./
moopapi.module, line 16
Code
function moopapi_init() {
// Fetch all registered classes.
$classes = moopapi_register();
foreach ($classes as $app => $decorators) {
$methods = get_class_methods($app);
// Casting to array is a protection from disabling dependent module.
foreach ((array) $methods as $method) {
moopapi_wrap($app, $method, $decorators);
}
}
}