delta_blocks.install 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * @file
  4. * Install/uninstall functions for the Delta blocks module.
  5. */
  6. /**
  7. * Implements hook_uninstall().
  8. */
  9. function delta_blocks_uninstall() {
  10. variable_del('delta_blocks_blocks');
  11. variable_del('delta_blocks_logo_linked');
  12. variable_del('delta_blocks_page_title_hidden');
  13. variable_del('delta_blocks_site_name_linked');
  14. variable_del('delta_blocks_site_name_hidden');
  15. variable_del('delta_blocks_site_slogan_hidden');
  16. variable_del('delta_blocks_branding_logo_linked');
  17. variable_del('delta_blocks_branding_logo_render');
  18. variable_del('delta_blocks_branding_site_name_linked');
  19. variable_del('delta_blocks_branding_site_name_hidden');
  20. variable_del('delta_blocks_branding_site_slogan_hidden');
  21. variable_del('delta_blocks_breadcrumb_title_hidden');
  22. variable_del('delta_blocks_breadcrumb_current');
  23. }
  24. /**
  25. * Implements hook_install().
  26. */
  27. function delta_blocks_install() {
  28. variable_set('delta_blocks_logo_linked', TRUE);
  29. variable_set('delta_blocks_page_title_hidden', FALSE);
  30. variable_set('delta_blocks_site_name_linked', TRUE);
  31. variable_set('delta_blocks_site_name_hidden', FALSE);
  32. variable_set('delta_blocks_site_slogan_hidden', FALSE);
  33. variable_set('delta_blocks_branding_logo_linked', TRUE);
  34. variable_set('delta_blocks_branding_logo_render', TRUE);
  35. variable_set('delta_blocks_branding_site_name_linked', TRUE);
  36. variable_set('delta_blocks_branding_site_name_hidden', FALSE);
  37. variable_set('delta_blocks_branding_site_slogan_hidden', FALSE);
  38. variable_set('delta_blocks_breadcrumb_title_hidden', TRUE);
  39. variable_set('delta_blocks_breadcrumb_current', TRUE);
  40. }