You are here

function prod_monitor_load in Production check & Production monitor 6

Same name and namespace in other branches
  1. 7 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 235

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;
}