summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Miccolis2010-01-12 15:09:14 (GMT)
committer Jeff Miccolis2010-01-12 15:09:14 (GMT)
commit7b596b74e01ca7b7426c9b5b306301a5a451d5e5 (patch)
treeee87fc32b7c53e2f53e0af9f9b1f3296d2897efc
parent8fbd0bd65ce284c7e9b5b14689cfc4c2d4e7a4c9 (diff)
Improved non-admin confirmation message.6.x-3.0-alpha2
-rw-r--r--context_ui/context_ui.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/context_ui/context_ui.module b/context_ui/context_ui.module
index 296db80..86b75e8 100644
--- a/context_ui/context_ui.module
+++ b/context_ui/context_ui.module
@@ -351,7 +351,9 @@ function context_ui_editor_submit(&$form, &$form_state) {
$context = context_ui_editor_process($values);
if (($original->conditions !== $context->conditions) || ($original->reactions !== $context->reactions)) {
if (context_save($context)) {
- drupal_set_message(t('Saved context %title.', array('%title' => $context->name)));
+ drupal_set_message(t('Saved %title.', array(
+ '%title' => (!empty($context->description) ? $context->description : $context->name)
+ )));
}
else {
drupal_set_message(t('Could not save context %title.', array('%title' => $context->name)), 'error');