function swftools_status in SWF Tools 6.3
Same name and namespace in other branches
- 6 swftools.admin.status.inc \swftools_status()
- 6.2 swftools.admin.status.inc \swftools_status()
Generates a status report for SWF Tools methods / players / media defaults.
This is the entry point for the status report. It constructs an HTML string by calling a sequence of helper functions that build each element of the report. The finished string is returned for output.
Return value
string A markup string.
1 string reference to 'swftools_status'
- swftools_menu in ./
swftools.module - Implementation of hook_menu().
File
- includes/
swftools.admin.status.inc, line 18 - Generates status reports for SWF Tools.
Code
function swftools_status() {
// Pick up definitions for severity levels
include_once './includes/install.inc';
// Begin html string to hold output
$html = t('<p>The following tables show the status of SWF Tools and its supporting modules. This information can help to diagnose an installation that is not working correctly. Warnings indicate an issue that may prevent SWF Tools from performing as expected but are not necessarily an immediate problem. Errors show that there is an issue that will prevent SWF Tools from working.</p>');
// Get embedding status report
$html .= _swftools_status_embedding();
// Get playback and player status report
$html .= _swftools_status_players();
// Get zlib status
$html .= _swftools_zlib();
// Return markup
return $html;
}