function ctools_page_title_content_type_token
Variable token callback to properly render the page title, with markup.
1 string reference to 'ctools_page_title_content_type_token'
- ctools_page_title_content_type_render in plugins/
content_types/ page/ page_title.inc - Output function for the 'page_title' content type.
File
-
plugins/
content_types/ page/ page_title.inc, line 108
Code
function ctools_page_title_content_type_token(&$variables, $tag, $id, $class) {
if ($tag == 'none') {
return drupal_get_title();
}
$output = '<' . $tag;
if ($id) {
$output .= ' id="' . $id . '"';
}
if ($class) {
$output .= ' class="' . $class . '"';
}
$output .= '>' . drupal_get_title() . '</' . $tag . '>' . "\n";
return $output;
}