You are here

function panels_mini_title_mini_panel in Panels 5.2

Same name and namespace in other branches
  1. 6.2 panels_mini/panels_mini.module \panels_mini_title_mini_panel()
1 string reference to 'panels_mini_title_mini_panel'
panels_mini_panels_content_types in panels_mini/panels_mini.module
Expose all mini panels to our own system.

File

panels_mini/panels_mini.module, line 956
panels_mini.module

Code

function panels_mini_title_mini_panel($conf) {
  $mini = panels_mini_load($conf['name']);
  if (!$mini) {
    return t('Deleted/missing mini panel @name', array(
      '@name' => $conf['name'],
    ));
  }
  $title = filter_xss_admin($mini->title);
  if (empty($title)) {
    $title = t('Untitled mini panel');
  }
  return $title;
}