admin.features.filter.inc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * @file
  4. * admin.features.filter.inc
  5. */
  6. /**
  7. * Implements hook_filter_default_formats().
  8. */
  9. function admin_filter_default_formats() {
  10. $formats = array();
  11. // Exported format: Filtred html.
  12. $formats['filtred_html'] = array(
  13. 'format' => 'filtred_html',
  14. 'name' => 'Filtred html',
  15. 'cache' => 1,
  16. 'status' => 1,
  17. 'weight' => 0,
  18. 'filters' => array(
  19. 'filter_html' => array(
  20. 'weight' => -10,
  21. 'status' => 1,
  22. 'settings' => array(
  23. 'allowed_html' => '<a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <br> <img> <h6> <h5> <h4> <h3> <h2> <h1>',
  24. 'filter_html_help' => 1,
  25. 'filter_html_nofollow' => 0,
  26. ),
  27. ),
  28. 'filter_url' => array(
  29. 'weight' => 0,
  30. 'status' => 1,
  31. 'settings' => array(
  32. 'filter_url_length' => 72,
  33. ),
  34. ),
  35. ),
  36. );
  37. // Exported format: Plain text.
  38. $formats['plain_text'] = array(
  39. 'format' => 'plain_text',
  40. 'name' => 'Plain text',
  41. 'cache' => 1,
  42. 'status' => 1,
  43. 'weight' => 10,
  44. 'filters' => array(
  45. 'filter_html_escape' => array(
  46. 'weight' => 0,
  47. 'status' => 1,
  48. 'settings' => array(),
  49. ),
  50. 'filter_url' => array(
  51. 'weight' => 1,
  52. 'status' => 1,
  53. 'settings' => array(
  54. 'filter_url_length' => 72,
  55. ),
  56. ),
  57. 'filter_autop' => array(
  58. 'weight' => 2,
  59. 'status' => 1,
  60. 'settings' => array(),
  61. ),
  62. ),
  63. );
  64. return $formats;
  65. }