1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- /**
- * Implements hook_menu().
- */
- function text_formats_report_menu() {
- $items['admin/reports/text-formats'] = array(
- 'title' => 'Text formats',
- 'description' => "Analyze the usage of the available text formats on this site.",
- 'page callback' => 'drupal_get_form',
- 'page arguments' => array('text_formats_report_page_form'),
- 'access arguments' => array('administer site configuration'),
- 'file' => 'inc/text_formats_report.page.inc',
- );
- $items['admin/reports/text-formats/field/%'] = array(
- 'title' => 'Text formats by field',
- 'page callback' => 'text_formats_report_field_page',
- 'page arguments' => array(4),
- 'access arguments' => array('administer site configuration'),
- 'file' => 'inc/text_formats_report.field_page.inc',
- );
- return $items;
- }
- /**
- * Implements hook_theme().
- */
- function text_formats_report_theme($existing, $type, $theme, $path) {
- return array(
- 'text_formats_report_stats' => array(
- 'variables' => array(
- 'entities' => array(),
- 'custom_blocks' => array(),
- 'filter_formats_filter_lists' => array(),
- ),
- 'file' => 'theme/text_formats_report_stats.theme.inc'
- ),
- 'text_formats_report_field_stats' => array(
- 'variables' => array(
- 'stats' => array(),
- 'filter_formats' => array(),
- 'field_name' => '',
- ),
- 'file' => 'theme/text_formats_report_field_stats.theme.inc'
- ),
- );
- }
|