summaryrefslogtreecommitdiffstats
path: root/plugins/content_types/page/page_messages.inc
blob: e2fe37b3574d67dc0e9d6adfe9d238ae5b0357a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php

/**
 * @file
 * Plugin to handle the 'page_messages' content type which allows the
 * status messages of the current page to be embedded into a panel.
 */

/**
 * Plugins are described by creating a $plugin array which will be used
 * by the system that includes this file.
 */
$plugin = array(
  'title' => t('Status messages'),
  'single' => TRUE,
  'icon' => 'icon_page.png',
  'description' => t('Add the status messages of the current page as content.'),
  'category' => t('Page elements'),
  'render last' => TRUE,
);

/**
 * Output function for the 'page_messages' content type.
 *
 * Outputs the breadcrumb for the current page.
 */
function ctools_page_messages_content_type_render($subtype, $conf, $panel_args) {
  $block = new stdClass();
  $block->content = theme('status_messages');

  return $block;
}