| 1 |
<?php |
<?php |
| 2 |
// $Id: display-edit.inc,v 1.7.2.28 2009/08/18 22:29:29 merlinofchaos Exp $ |
// $Id: display-edit.inc,v 1.7.2.29 2009/10/07 22:20:29 merlinofchaos Exp $ |
| 3 |
|
|
| 4 |
/* |
/* |
| 5 |
* @file |
* @file |
| 528 |
$access_title = isset($plugin['title']) ? $plugin['title'] : t('Broken/missing access plugin %plugin', array('%plugin' => $test['name'])); |
$access_title = isset($plugin['title']) ? $plugin['title'] : t('Broken/missing access plugin %plugin', array('%plugin' => $test['name'])); |
| 529 |
$access_description = ctools_access_summary($plugin, $contexts, $test); |
$access_description = ctools_access_summary($plugin, $contexts, $test); |
| 530 |
|
|
| 531 |
$visiblity_links[] = array( |
$visibility_links[] = array( |
| 532 |
'title' => t('@title: !description', array('@title' => $access_title, '!description' => $access_description)), |
'title' => $access_description, |
| 533 |
'href' => "panels/ajax/access-test/$cache_key/$pane->pid/$id", |
'href' => "panels/ajax/access-test/$cache_key/$pane->pid/$id", |
| 534 |
'attributes' => array('class' => 'ctools-use-modal'), |
'attributes' => array('class' => 'ctools-use-modal panels-italic'), |
| 535 |
); |
); |
| 536 |
} |
} |
| 537 |
} |
} |
| 1778 |
} |
} |
| 1779 |
|
|
| 1780 |
/** |
/** |
| 1781 |
* AJAX entry point for to add a visiblity rule. |
* AJAX entry point for to add a visibility rule. |
| 1782 |
*/ |
*/ |
| 1783 |
function panels_ajax_add_access_test($cache, $pid = NULL) { |
function panels_ajax_add_access_test($cache, $pid = NULL) { |
| 1784 |
ctools_include('content'); |
ctools_include('content'); |