You are here

function fieldable_panels_panes_fieldable_panels_pane_content_type_content_type in Fieldable Panels Panes (FPP) 7

Callback to return the custom content types with the specified $subtype_name.

File

plugins/content_types/fieldable_panels_pane.inc, line 88
CTools content type to render a fielded panel pane.

Code

function fieldable_panels_panes_fieldable_panels_pane_content_type_content_type($subtype_name) {
  $types = _fieldable_panels_panes_default_content_type();
  if (isset($types[$subtype_name])) {
    return $types[$subtype_name];
  }
  else {
    $entity = fieldable_panels_panes_load_from_subtype($subtype_name);
    if (!empty($entity)) {
      return _fieldable_panels_panes_custom_content_type($entity);
    }
  }
}