color_requirements($phase)
Implements hook_requirements().
File
core/modules/color/color.install, line 11 Install, update and uninstall functions for the color module.
Code
function color_requirements($phase) {
$requirements = array();
if ($phase == 'runtime') {
// Check for the PHP GD library.
if (function_exists('imagegd2')) {
$info = gd_info();
$requirements['color_gd'] = array(
'value' => $info['GD Version'],
);
// Check for PNG support.