$row) { foreach ($row as $filter) { if ($filter->status == 1) { $filter_lists_titles[] = check_plain($filter->title); } } $variables['filter_formats_filter_lists'][$filter_format] = $filter_lists_titles; } } /** * Theme implementation. * * @see template_preprocess_text_formats_report_stats() */ function theme_text_formats_report_stats(&$variables) { $content = ''; $content .= '
' . t("None") . '
' : theme('table', text_formats_report_prepare_table($variables['custom_blocks'])); $entities = (isset($variables['entities'])) ? $variables['entities'] : array(); if (empty($entities)) { return $content; } $tabs_list = ''; $tabs_content = ''; // Used for ui.tabs navigation. $id = 0; foreach ($entities as $filter_format => $row) { $id++; $tabs_list .= '' . t("Total entities using @format: ", array('@format' => $filter_format)) . '' . $entities[$filter_format]['total_content'] . '
'; $tabs_content .= theme('item_list', array( 'items' => $variables['filter_formats_filter_lists'][$filter_format], 'title' => t('Filters enabled for @format (@count)', array('@format' => $filter_format, '@count' => count($variables['filter_formats_filter_lists'][$filter_format]))), ) ); $tabs_content .= '' . l(t("Configure @format", array('@format' => $filter_format)), "admin/config/content/formats/$filter_format") . '
'; $tabs_content .= '' . t("Click on the field names to see the content in them.") . '
'; $tabs_content .= theme('table', text_formats_report_prepare_simple_table($entities[$filter_format]['fields'], array('Field name', 'Entities'))); $tabs_content .= '