You are here

function prod_monitor_load in Production check & Production monitor 7

Same name and namespace in other branches
  1. 6 prod_monitor/prod_monitor.module \prod_monitor_load()

Implementation of hook_load()

1 call to prod_monitor_load()
prod_monitor_fetch_all_data_batcher in prod_monitor/includes/prod_monitor.admin.inc
Batch fetching of all site info.

File

prod_monitor/prod_monitor.module, line 243

Code

function prod_monitor_load($id) {

  // Get module data.
  $modules = _prod_monitor_get_site_modules($id);

  // Hide tab if no module data found.
  if (!isset($modules['projects']) || empty($modules['projects'])) {
    $modules = FALSE;
  }
  return $modules;
}