function farm_log_categories_create_all in farmOS 7
Create log categories on behalf of all modules that provide them.
2 calls to farm_log_categories_create_all()
- farm_log_modules_enabled in modules/
farm/ farm_log/ farm_log.install - Implements hook_modules_enabled().
- farm_log_update_7007 in modules/
farm/ farm_log/ farm_log.install - Migrate observation types to log categories.
File
- modules/
farm/ farm_log/ farm_log.module, line 385 - Code for the Farm Log feature.
Code
function farm_log_categories_create_all() {
$categories = module_invoke_all('farm_log_categories');
if (!empty($categories)) {
farm_log_categories_create($categories);
}
}