page_actions.inc

  1. cis7 sites/all/modules/ulmus/ctools/plugins/content_types/page/page_actions.inc
  2. cle7 sites/all/modules/ulmus/ctools/plugins/content_types/page/page_actions.inc
  3. ecd7 sites/all/modules/ulmus/ctools/plugins/content_types/page/page_actions.inc
  4. elmsmedia7 sites/all/modules/ulmus/ctools/plugins/content_types/page/page_actions.inc
  5. harmony7 sites/all/modules/ulmus/ctools/plugins/content_types/page/page_actions.inc
  6. icor7 sites/all/modules/ulmus/ctools/plugins/content_types/page/page_actions.inc
  7. meedjum_blog7 sites/all/modules/ulmus/ctools/plugins/content_types/page/page_actions.inc
  8. mooc7 sites/all/modules/ulmus/ctools/plugins/content_types/page/page_actions.inc

Plugin to handle the 'page_actions' content type which allows the local actions template variables to be embedded into a panel.

Functions

Namesort descending Description
ctools_page_actions_content_type_render Output function for the 'page_actions' content type.

File

sites/all/modules/ulmus/ctools/plugins/content_types/page/page_actions.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Plugin to handle the 'page_actions' content type which allows the local
  5. * actions template variables 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('Actions'),
  13. 'single' => TRUE,
  14. 'icon' => 'icon_page.png',
  15. 'description' => t('Add the action links (local tasks) as content.'),
  16. 'category' => t('Page elements'),
  17. 'render last' => TRUE,
  18. );
  19. /**
  20. * Output function for the 'page_actions' content type.
  21. *
  22. * Outputs the actions (local tasks) of the current page.
  23. */
  24. function ctools_page_actions_content_type_render($subtype, $conf, $panel_args) {
  25. $block = new stdClass();
  26. $block->content = theme('ctools_menu_local_actions_wrapper', array('links' => menu_local_actions()));
  27. return $block;
  28. }
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.