You are here

function panels_ct_get_title in Panels 5.2

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

Get the title from a given content type.

Parameters

$type: The content type. May be the name or an already loaded content type object.

$conf: The configuration for the content type.

$context: The panels_context object.

$incoming_content: Any incoming content, if this display is a wrapper.

1 call to panels_ct_get_title()
panels_get_pane_title in includes/plugins.inc
Get the title of a pane.

File

includes/plugins.inc, line 240
plugins.inc

Code

function panels_ct_get_title($type, $conf, $context = NULL, $incoming_content = NULL) {
  if ($function = panels_plugin_get_function('content_types', $type, 'title callback')) {
    return $function($conf, $context, $incoming_content);
  }
  return t('Deleted/missing content type @type', array(
    '@type' => $type,
  ));
}