You are here

function panels_mini_panels_mini_ctools_content_types in Panels 7.3

Same name and namespace in other branches
  1. 6.3 panels_mini/plugins/content_types/panels_mini.inc \panels_mini_panels_mini_ctools_content_types()

Specially named hook. for .inc file. This looks a little silly due to the redundancy, but that's really just because the content type shares a name with the module.

File

panels_mini/plugins/content_types/panels_mini.inc, line 16
Contains the content type plugin for a mini panel. While this does not need to be broken out into a .inc file, it's convenient that we do so that we don't load code unnecessarily. Plus it demonstrates plugins in modules other than Panels itself.

Code

function panels_mini_panels_mini_ctools_content_types() {
  return array(
    'title' => t('Mini panels'),
    'content type' => 'panels_mini_panels_mini_content_type_content_type',
  );
}