You are here

function i18npanels_panels_content_custom in Internationalization 5.3

Same name and namespace in other branches
  1. 5.2 contrib/i18npanels.module \i18npanels_panels_content_custom()

Output function for the 'custom' content type. Outputs a custom based on the module and delta supplied in the configuration.

1 string reference to 'i18npanels_panels_content_custom'
i18npanels_panels_content_types in contrib/i18npanels.module
Callback function to supply a list of content types.

File

contrib/i18npanels.module, line 18

Code

function i18npanels_panels_content_custom($conf) {
  if (module_exists('i18n')) {
    $lang = i18n_get_lang();
    if ($conf[$lang]) {
      $conf['title'] = $conf[$lang]['title'];
      $conf['body'] = $conf[$lang]['body'];
      $conf['format'] = $conf[$lang]['format'];
    }
  }
  $title = filter_xss_admin($conf['title']);
  $css_id = filter_xss_admin($conf['css_id']);
  $css_class = filter_xss_admin($conf['css_class']);
  $body = check_markup($conf['body'], $conf['format'], FALSE);
  return theme('i18npanels_panels_content_custom', $title, $body, $css_id, $css_class);
}