You are here

function panels_mini_panels_mini_content_type_content_types in Panels 6.3

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

Return each available mini panel available as a subtype.

File

panels_mini/plugins/content_types/panels_mini.inc, line 35
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 unneccessarily. Plus it demonstrates plugins in modules other than Panels…

Code

function panels_mini_panels_mini_content_type_content_types($plugin) {
  $types = array();
  foreach (panels_mini_load_all() as $mini) {
    $type = _panels_mini_panels_mini_content_type_content_type($mini);
    if ($type) {
      $types[$mini->name] = $type;
    }
  }
  return $types;
}