admin.features.filter.inc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. 'video_filter' => array(
  29. 'weight' => -1,
  30. 'status' => 1,
  31. 'settings' => array(
  32. 'video_filter_width' => 400,
  33. 'video_filter_height' => 400,
  34. 'video_filter_autoplay' => 0,
  35. 'video_filter_related' => 1,
  36. 'video_filter_html5' => 1,
  37. 'video_filter_codecs' => array(
  38. 'archive' => 'Archive.org',
  39. 'bliptv' => 'Blip.tv',
  40. 'candidcareer' => 'Candid Career',
  41. 'capped' => 'Capped',
  42. 'collegehumor' => 'College Humor',
  43. 'coub' => 'Coub',
  44. 'dailymotion' => 'DailyMotion',
  45. 'democracynow_fullshow' => 'DemocracyNow Fullshow',
  46. 'democracynow_story' => 'DemocracyNow Story',
  47. 'flickr_slideshows' => 'Flickr Slideshows',
  48. 'flickr_video' => 'Flickr Video',
  49. 'foxnews' => 'Fox News',
  50. 'gametrailers' => 'Game Trailers',
  51. 'gamevideos' => 'Game Videos',
  52. 'giphy' => 'Giphy',
  53. 'godtube' => 'GodTube',
  54. 'google' => 'Google Video',
  55. 'instagram' => 'Instagram',
  56. 'metacafe' => 'Meta Cafe',
  57. 'mailru' => 'Mail.Ru',
  58. 'myspace' => 'MySpace',
  59. 'myvideo' => 'MyVideo',
  60. 'picasa_slideshows' => 'Picasa Slideshows',
  61. 'rutube' => 'Rutube',
  62. 'slideshare' => 'Slideshare',
  63. 'streamhoster' => 'Streamhoster',
  64. 'teachertube' => 'Teachertube',
  65. 'ted' => 'TED',
  66. 'twitch' => 'Twitch',
  67. 'ustream' => 'Ustream',
  68. 'vbox' => 'Vbox7',
  69. 'vimeo' => 'Vimeo',
  70. 'vine' => 'Vine',
  71. 'whatchado' => 'whatchado',
  72. 'wistia' => 'Wistia',
  73. 'youku' => 'YouKu',
  74. 'youtube' => 'YouTube',
  75. 'youtube_playlist' => 'YouTube (Playlist)',
  76. ),
  77. 'video_filter_multiple_sources' => TRUE,
  78. ),
  79. ),
  80. 'filter_url' => array(
  81. 'weight' => 0,
  82. 'status' => 1,
  83. 'settings' => array(
  84. 'filter_url_length' => 72,
  85. ),
  86. ),
  87. ),
  88. );
  89. // Exported format: Plain text.
  90. $formats['plain_text'] = array(
  91. 'format' => 'plain_text',
  92. 'name' => 'Plain text',
  93. 'cache' => 1,
  94. 'status' => 1,
  95. 'weight' => 10,
  96. 'filters' => array(
  97. 'filter_html_escape' => array(
  98. 'weight' => 0,
  99. 'status' => 1,
  100. 'settings' => array(),
  101. ),
  102. 'filter_url' => array(
  103. 'weight' => 1,
  104. 'status' => 1,
  105. 'settings' => array(
  106. 'filter_url_length' => 72,
  107. ),
  108. ),
  109. 'filter_autop' => array(
  110. 'weight' => 2,
  111. 'status' => 1,
  112. 'settings' => array(),
  113. ),
  114. ),
  115. );
  116. return $formats;
  117. }