media_youtube.install 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the Media: YouTube module.
  5. */
  6. /**
  7. * Implement hook_install().
  8. */
  9. function media_youtube_install() {
  10. return array();
  11. }
  12. /**
  13. * Implement hook_uninstall().
  14. */
  15. function media_youtube_uninstall() {
  16. drupal_load('module', 'media_youtube');
  17. foreach (media_youtube_variable_default() as $variable => $value) {
  18. media_youtube_variable_del($variable);
  19. }
  20. return array(array('success' => TRUE, 'query' => "Deleted all variables in the Media: YouTube namespace."));
  21. }
  22. /**
  23. * Clear style and preset caches.
  24. */
  25. function media_youtube_update_7001() {
  26. // We don't do this if we're using version 1 of Styles.
  27. if (function_exists('styles_style_flush')) {
  28. styles_style_flush();
  29. }
  30. return array();
  31. }
  32. /**
  33. * Add label to Media: YouTube file style.
  34. */
  35. function media_youtube_update_7003() {
  36. return array();
  37. }
  38. /**
  39. * Rebuild themes.
  40. */
  41. function media_youtube_update_7004() {
  42. drupal_theme_rebuild();
  43. return array();
  44. }
  45. /**
  46. * Add a large video preset and medium thumbnail.
  47. */
  48. function media_youtube_update_7005() {
  49. return array();
  50. }
  51. /**
  52. * Add a square thumbnail preset.
  53. */
  54. function media_youtube_update_7006() {
  55. return array();
  56. }
  57. /**
  58. * Rebuild the registry to locate class files in new location.
  59. */
  60. function media_youtube_update_7007() {
  61. registry_rebuild();
  62. }
  63. /**
  64. * Rebuild styles presets to use camelCase.
  65. */
  66. function media_youtube_update_7008() {
  67. return array();
  68. }
  69. /**
  70. * Change default styles presets.
  71. */
  72. function media_youtube_update_7009() {
  73. return array();
  74. }
  75. /**
  76. * Change default styles presets.
  77. */
  78. function media_youtube_update_7010() {
  79. return array();
  80. }
  81. /**
  82. * Add video presets based on Image styles.
  83. */
  84. function media_youtube_update_7011() {
  85. return array();
  86. }
  87. /**
  88. * Rebuild theme and formatters.
  89. */
  90. function media_youtube_update_7012() {
  91. return array();
  92. }