date_views.install 938 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the Date Views module.
  5. */
  6. /**
  7. * Implements hook_install().
  8. */
  9. function date_views_install() {
  10. variable_set('date_views_month_format_with_year', 'F Y');
  11. variable_set('date_views_month_format_without_year', 'F');
  12. variable_set('date_views_day_format_with_year', 'l, F j, Y');
  13. variable_set('date_views_day_format_without_year', 'l, F j');
  14. variable_set('date_views_week_format_with_year', 'F j, Y');
  15. variable_set('date_views_week_format_without_year', 'F j');
  16. }
  17. /**
  18. * Implements hook_uninstall().
  19. */
  20. function date_views_uninstall() {
  21. variable_del('date_views_month_format_with_year');
  22. variable_del('date_views_month_format_without_year');
  23. variable_del('date_views_day_format_with_year');
  24. variable_del('date_views_day_format_without_year');
  25. variable_del('date_views_week_format_with_year');
  26. variable_del('date_views_week_format_without_year');
  27. }