You are here

function panels_get_all_content_types in Panels 5.2

Same name and namespace in other branches
  1. 6.2 includes/plugins.inc \panels_get_all_content_types()

Get an array of all content types that can be fed into the display editor for the add content list, regardless of availability.

1 call to panels_get_all_content_types()
panels_common_settings in includes/common.inc
A common settings page for Panels modules, because this code is relevant to any modules that don't already have special requirements.

File

includes/plugins.inc, line 492
plugins.inc

Code

function panels_get_all_content_types() {
  $content_types = panels_get_content_types();
  $available = array();
  foreach ($content_types as $id => $type) {
    foreach (panels_ct_get_types($type) as $cid => $cinfo) {

      // If we made it through all the tests, then we can use this content.
      $available[$id][$cid] = $cinfo;
    }
  }
  return $available;
}