$t('amCharts %file file', array('%file' => $file)), 'description' => $t('amCharts for Charts and Graphs needs the %file file to work properly. Please review amCharts !installation_instructions.', array( '%file' => $file, '!installation_instructions' => l(t('installation instructions'), $installation_instructions_path)) ), 'severity' => REQUIREMENT_ERROR, 'value' => $t('Unavailable'), ); } $file = 'amline.swf'; if (!file_exists($path . $file)) { $requirements['amcharts_' . $file] = array( 'title' => $t('amCharts %file file', array('%file' => $file)), 'description' => $t('amCharts for Charts and Graphs needs the %file file to work properly. Please review amCharts !installation_instructions.', array( '%file' => $file, '!installation_instructions' => l(t('installation instructions'), $installation_instructions_path)) ), 'severity' => REQUIREMENT_ERROR, 'value' => $t('Unavailable'), ); } $file = 'ampie.swf'; if (!file_exists($path . $file)) { $requirements['amcharts_' . $file] = array( 'title' => $t('amCharts %file file', array('%file' => $file)), 'description' => $t('amCharts for Charts and Graphsneeds the %file file to work properly. Please review amCharts !installation_instructions.', array( '%file' => $file, '!installation_instructions' => l(t('installation instructions'), $installation_instructions_path)) ), 'severity' => REQUIREMENT_ERROR, 'value' => $t('Unavailable'), ); } if (!class_exists('DOMDocument')) { $requirements['amcharts_dom_support'] = array( 'title' => $t('DOM support in PHP'), 'description' => $t('amCharts for Charts and Graphs needs DOM support in PHP. Please review amCharts !installation_instructions and enable it.', array( '!installation_instructions' => l(t('installation instructions'), $installation_instructions_path)) ), 'severity' => REQUIREMENT_ERROR, 'value' => $t('Unavailable'), ); } } return $requirements; }