summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2009-07-10 00:16:50 (GMT)
committer Earl Miles2009-07-10 00:16:50 (GMT)
commit6d5890e5796cab7db0286fd552ce8e019b75fa9a (patch)
tree1570a67046ff8ca76fe8ccc0446bc5256ab4091a
parent3d6332b0cb8c1d7e63e361210a575a6929ec97a5 (diff)
Add some explanation for access rules vs selection criteria.
-rw-r--r--includes/context-task-handler.inc5
-rw-r--r--page_manager/plugins/tasks/page.admin.inc5
2 files changed, 10 insertions, 0 deletions
diff --git a/includes/context-task-handler.inc b/includes/context-task-handler.inc
index 8effdc9..d82946d 100644
--- a/includes/context-task-handler.inc
+++ b/includes/context-task-handler.inc
@@ -266,6 +266,11 @@ function ctools_context_handler_edit_criteria(&$form, &$form_state) {
$form_state['contexts'] = ctools_context_handler_get_all_contexts($form_state['task'], $form_state['subtask'], $form_state['handler']);
ctools_include('context-access-admin');
+ $form['markup'] = array(
+ '#value' => '<div class="description">' .
+ t('If there is more than one variant on a page, when the page is visited each variant is given an opportunity to be displayed. Starting from the first variant in the least, each one tests to see if its selection rules will pass. If it does, that variant is using. If it does not, it passes to the next one.') .
+ '</div>',
+ );
$form = array_merge($form, ctools_access_admin_form($form_state));
}
diff --git a/page_manager/plugins/tasks/page.admin.inc b/page_manager/plugins/tasks/page.admin.inc
index bc9ce20..17decd0 100644
--- a/page_manager/plugins/tasks/page.admin.inc
+++ b/page_manager/plugins/tasks/page.admin.inc
@@ -699,6 +699,11 @@ function page_manager_page_form_access(&$form, &$form_state) {
$form_state['contexts'] = ctools_context_get_placeholders_from_argument($arguments);
}
+ $form['markup'] = array(
+ '#value' => '<div class="description">' .
+ t('Access rules are used to test if the page is accessible and any menu items associated with it are visible.') .
+ '</div>',
+ );
ctools_include('context-access-admin');
$form = array_merge($form, ctools_access_admin_form($form_state));
}