#531936: Cache handling on contexts was spotty and could cause random errors.
#545540 by Roger López: Add 5 page elements as available panes for using Panels as your primary page layout: breadcrumb, page title, messages, tabs and help box.
#537776 by rfay: CTools Plugin Example module to help guide people in making plugins.
+#552020: Show the administrative description on page manager edit forms.
ctools 6.x-1.0-rc1
==================
$output = $messages . $output;
}
+ $description = isset($operation['admin description']) ? $operation['admin description'] : (isset($operation['description']) ? $operation['description'] : '');
$return = array(
'title' => $title,
'content' => $output,
+ 'description' => $description,
);
// Append any extra content, used for the preview which is submitted then
$output = '';
+/*
if (isset($form_state['subtask']['admin title'])) {
$form_state['title'] = $form_state['subtask']['admin title'];
}
+*/
if (isset($form_state['subtask']['admin description'])) {
$output .= '<div class="description">' . $form_state['subtask']['admin description'] . '</div>';
$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));
}
$settings['access'] = array(
'title' => t('Access'),
'description' => t('Control what users can access this page.'),
+ 'admin description' => t('Access rules are used to test if the page is accessible and any menu items associated with it are visible.'),
'form' => 'page_manager_page_form_access',
);
* Template for the page manager page editor.
*
* Variables available:
- * -
+ * -
*
* For javascript purposes the id must not change.
*/
</div>
<div class="content-content">
+ <?php if (!empty($content['description'])): ?>
+ <div class="description">
+ <?php print $content['description']; ?>
+ </div>
+ <?php endif; ?>
<?php print $content['content']; ?>
</div>
</div>