page_messages.inc 824 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * @file
  4. * Plugin to handle the 'page_messages' content type which allows the
  5. * status messages of the current page to be embedded into a panel.
  6. */
  7. /**
  8. * Plugins are described by creating a $plugin array which will be used
  9. * by the system that includes this file.
  10. */
  11. $plugin = array(
  12. 'title' => t('Status messages'),
  13. 'single' => TRUE,
  14. 'icon' => 'icon_page.png',
  15. 'description' => t('Add the status messages of the current page as content.'),
  16. 'category' => t('Page elements'),
  17. 'render last' => TRUE,
  18. );
  19. /**
  20. * Output function for the 'page_messages' content type.
  21. *
  22. * Outputs the breadcrumb for the current page.
  23. */
  24. function ctools_page_messages_content_type_render($subtype, $conf, $panel_args) {
  25. $block = new stdClass();
  26. $block->content = theme('status_messages');
  27. return $block;
  28. }