function moopapi_init in Module Object Oriented Programming API 7
Same name and namespace in other branches
- 6.2 moopapi.module \moopapi_init()
- 6 moopapi.module \moopapi_init()
- 7.2 moopapi.module \moopapi_init()
Implements 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);
}
}
}