function relation_generate_message in Relation 8
Same name and namespace in other branches
- 8.2 relation.drush.inc \relation_generate_message()
- 7 relation.drush.inc \relation_generate_message()
Sends message to drush log, if enabled.
Parameters
$message: Text of message.
1 call to relation_generate_message()
- relation_generate_relations in ./
relation.drush.inc - Generates pseudorandom relations. Appropriate entities must already exist.
File
- ./
relation.drush.inc, line 48 - Drush integration for the relation module.
Code
function relation_generate_message($message) {
if (function_exists('drush_log')) {
drush_log($message, 'ok');
}
else {
drupal_set_message($message);
}
}