function commerce_reports_dashboard_block_width in Commerce Reporting 7.4
Same name and namespace in other branches
- 7.3 commerce_reports.dashboard.inc \commerce_reports_dashboard_block_width()
Determines a blocks width on the Commerce Reports dashboard.
Parameters
array $items: Array of blocks.
Return value
int Returns the block's width.
1 call to commerce_reports_dashboard_block_width()
- commerce_reports_dashboard in ./
commerce_reports.dashboard.inc - Renders the dashboard.
File
- ./
commerce_reports.dashboard.inc, line 20 - Dashboard for reporting module.
Code
function commerce_reports_dashboard_block_width($items = array()) {
$width = 0;
foreach ($items as $item) {
$width += isset($item['#width']) ? $item['#width'] : COMMERCE_REPORTS_DASHBOARD_BLOCK;
}
return $width;
}