Blog post / screencast on what this module does
Requirement Dashboard is an API module that allows you to define paths that can behave the same way as admin/reports/status. These dashboards utilize the same type of requirements specification that drupal natively provides via the hook_requirements. By itself this module doesn't do anything but it does come shipped with 2 submodules as example implementations of the API:
requirement_dashboard_og -- Dashboards that only show up for dashboards. Also shows how you can use built in drupal hooks to extend the functionality of this api and comes with some basic information rendered to the dashboard provided at node/%/og_status
requirement_dashboard_system -- System wide dashboard. A good way of giving out information about the site to non-admins that still potentially moderate content.
You can do two things with this API -- Create dashboards and define requirements to show up on dashboards. Requirements can be added in from any module to allow for other modules to supply their own useful data to dashboards.
All dashboards also have their own permission so that you can define different types of dashboards for different roles, giving the users of your site the level of information they should have access to for making better decisions (is the hope).
Example creation of a dashboard:
function hook_requirement_dashboard_provider() {
$dashboards['og'] = array(
'title' => 'Group Status',
'path' => 'node/%node/og_status',
);
return $dashboards;
}Example creation of a requirement:
function hook_dashboard_requirements($provider) {
switch ($provider) {
case 'provider':
$calculated_value = 'something dynamic';
$requirements['requirement_name'] = array(
'title' => t('Title'),
'value' => $calculated_value,
'severity' => REQUIREMENT_INFO,
'description' => t('Way of describing what this value means'), //optional property in D7 API only
);
break;
case 'og':
$group = og_group_get_context();
$requirements['name'] = array(
'title' => t('Group Name'),
'value' => $group->title,
'severity' => REQUIREMENT_INFO,
);
break;
}
return $requirements;
}This project was created as part of the ELMS Initiative.
Downloads
Recommended releases
Development releases
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Administration, Developer, Utility
- Reported installs: 80 sites currently report using this module. View usage statistics.
- Downloads: 1,140
- Last modified: August 28, 2012