security update core+modules

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-26 18:38:56 +02:00
parent 2f45ea820a
commit 7c96373038
1022 changed files with 30319 additions and 11259 deletions

View File

@@ -2,11 +2,12 @@ name = Custom content panes
description = Create custom, exportable, reusable content panes for applications like Panels.
core = 7.x
package = Chaos tool suite
version = CTOOLS_MODULE_VERSION
dependencies[] = ctools
; Information added by drupal.org packaging script on 2013-02-02
version = "7.x-1.2+31-dev"
; Information added by Drupal.org packaging script on 2015-03-18
version = "7.x-1.7"
core = "7.x"
project = "ctools"
datestamp = "1359766341"
datestamp = "1426696183"

View File

@@ -36,6 +36,26 @@ function ctools_custom_content_ctools_plugin_directory($module, $plugin) {
}
}
/**
* Implements hook_get_pane_links_alter().
*/
function ctools_custom_content_get_pane_links_alter(&$links, $pane, $content_type) {
if ($pane->type == 'custom') {
if(!isset($pane->configuration['name'])) {
$name_of_pane = $pane->subtype;
}
else {
$name_of_pane = $pane->configuration['name'];
}
$links['top']['edit_custom_content'] = array(
'title' => t('Edit custom content pane'),
'href' => url('admin/structure/ctools-content/list/' . $name_of_pane . '/edit', array('absolute' => TRUE)),
'attributes' => array('target' => array('_blank')),
);
}
}
/**
* Create callback for creating a new CTools custom content type.
*