function _prod_check_nodewords in Production check & Production monitor 6
File
- ./
prod_check.module, line 1714
Code
function _prod_check_nodewords($caller = 'internal') {
$check = array();
$title_ok = 'settings';
$text_ok = 'Check the !link to verify if they are as you expect.';
$title = 'Meta tags';
$path = 'admin/content/nodewords';
if ($caller != 'internal') {
$path = PRODCHECK_BASEURL . $path;
}
$check['prod_check_nodewords'] = array(
'#title' => t($title),
'#state' => module_exists('nodewords'),
'#severity' => $caller == 'nagios' ? NAGIOS_STATUS_WARNING : PROD_CHECK_REQUIREMENT_WARNING,
'#value_ok' => t('Enabled'),
'#value_nok' => t('Disabled'),
'#description_ok' => prod_check_ok_title($title_ok, $path, $text_ok),
'#description_nok' => t('You have not enabled the !link module. If you care about ranking your site in search engines, this module is an absolute must.', prod_check_link_array($title, 'http://drupal.org/project/nodewords')),
'#nagios_key' => 'META',
'#nagios_type' => 'state',
);
return prod_check_execute_check($check, $caller);
}