diff options
Diffstat (limited to 'sites/all/modules/ctools/plugins/content_types/page/page_slogan.inc')
-rw-r--r-- | sites/all/modules/ctools/plugins/content_types/page/page_slogan.inc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sites/all/modules/ctools/plugins/content_types/page/page_slogan.inc b/sites/all/modules/ctools/plugins/content_types/page/page_slogan.inc new file mode 100644 index 000000000..d5cba38b6 --- /dev/null +++ b/sites/all/modules/ctools/plugins/content_types/page/page_slogan.inc @@ -0,0 +1,32 @@ +<?php + +/** + * @file + * Plugin to handle the 'page_slogan' content type which allows the + * slogan of the site 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('Site slogan'), + 'single' => TRUE, + 'icon' => 'icon_page.png', + 'description' => t("Add the site's slogan as content."), + 'category' => t('Page elements'), + 'render last' => TRUE, +); + +/** + * Output function for the 'page_slogan' content type. + * + * Outputs the slogan for the current page. + */ +function ctools_page_slogan_content_type_render($subtype, $conf, $panel_args) { + $block = new stdClass(); + $block->content = filter_xss_admin(variable_get('site_slogan', '')); + + return $block; +} |