function features_log in Features 7.2
Same name and namespace in other branches
- 6 features.module \features_log()
- 7 features.module \features_log()
Log a message, environment agnostic.
Parameters
string $message: The message to log.
string $severity: The severity of the message: status, warning or error.
1 call to features_log()
- features_export_render in ./
features.export.inc - Render feature export into an array representing its files.
File
- ./
features.module, line 1304 - Main *.module file for the 'features' module.
Code
function features_log($message, $severity = 'status') {
if (function_exists('drush_verify_cli')) {
$message = strip_tags($message);
if ($severity == 'status') {
$severity = 'ok';
}
elseif ($severity == 'error') {
drush_set_error($message);
return;
}
drush_log($message, $severity);
return;
}
drupal_set_message($message, $severity, FALSE);
}