text_formats_report.module 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Implements hook_menu().
  4. */
  5. function text_formats_report_menu() {
  6. $items['admin/reports/text-formats'] = array(
  7. 'title' => 'Text formats',
  8. 'description' => "Analyze the usage of the available text formats on this site.",
  9. 'page callback' => 'drupal_get_form',
  10. 'page arguments' => array('text_formats_report_page_form'),
  11. 'access arguments' => array('administer site configuration'),
  12. 'file' => 'inc/text_formats_report.page.inc',
  13. );
  14. $items['admin/reports/text-formats/field/%'] = array(
  15. 'title' => 'Text formats by field',
  16. 'page callback' => 'text_formats_report_field_page',
  17. 'page arguments' => array(4),
  18. 'access arguments' => array('administer site configuration'),
  19. 'file' => 'inc/text_formats_report.field_page.inc',
  20. );
  21. return $items;
  22. }
  23. /**
  24. * Implements hook_theme().
  25. */
  26. function text_formats_report_theme($existing, $type, $theme, $path) {
  27. return array(
  28. 'text_formats_report_stats' => array(
  29. 'variables' => array(
  30. 'entities' => array(),
  31. 'custom_blocks' => array(),
  32. 'filter_formats_filter_lists' => array(),
  33. ),
  34. 'file' => 'theme/text_formats_report_stats.theme.inc'
  35. ),
  36. 'text_formats_report_field_stats' => array(
  37. 'variables' => array(
  38. 'stats' => array(),
  39. 'filter_formats' => array(),
  40. 'field_name' => '',
  41. ),
  42. 'file' => 'theme/text_formats_report_field_stats.theme.inc'
  43. ),
  44. );
  45. }