function asset_bonus_admin_overview in Asset 5
Same name and namespace in other branches
- 5.2 contrib/asset_bonus/asset_bonus.module \asset_bonus_admin_overview()
- 6 asset_bonus/asset_bonus.module \asset_bonus_admin_overview()
- 6 contrib/asset_bonus/asset_bonus.module \asset_bonus_admin_overview()
1 string reference to 'asset_bonus_admin_overview'
- asset_bonus_menu in asset_bonus/
asset_bonus.module
File
- asset_bonus/
asset_bonus.module, line 56
Code
function asset_bonus_admin_overview() {
$files = array(
'audioplayer/audio-player.js',
'audioplayer/player.swf',
'swfheader/swfheader.class.php',
'swfobject/swfobject.js',
);
foreach ($files as $file) {
$found = file_exists(drupal_get_path('module', 'asset_bonus') . '/' . $file);
$output .= '<tr class="' . ($found ? 'ok' : 'error') . '"><th>' . $file . '</th><td>' . ($found ? 'Found' : 'Not found') . '</td></tr>';
}
return '<table class="system-status-report">' . $output . '</table>';
}