og_access.install

  1. 7.x-2.x og/og_access/og_access.install
  2. 7.x-1.x og/og_access/og_access.install
  3. 6.x og/modules/og_access/og_access.install

Install, update, and uninstall functions for the Organic groups access module.

Functions

Namesort descending Description
og_access_schema Implements hook_schema();
og_access_uninstall Implements hook_uninstall().
og_access_update_7000 Upgrade from Organic groups access 6 to 7.
og_access_update_7200 Set variable to show message about "Rebuilding permissions".

File

og/og_access/og_access.install
View source
  1. <?php
  2. /**
  3. * @file
  4. * Install, update, and uninstall functions for the Organic groups access module.
  5. */
  6. /**
  7. * Implements hook_uninstall().
  8. */
  9. function og_access_uninstall() {
  10. $vars = array(
  11. 'og_access_strict_private',
  12. );
  13. foreach ($vars as $var) {
  14. variable_del($var);
  15. }
  16. }
  17. /**
  18. * Implements hook_schema();
  19. */
  20. function og_access_schema() {
  21. if (db_table_exists('og_access_post')) {
  22. db_rename_table('og_access_post', 'd6_og_access_post');
  23. }
  24. }
  25. /**
  26. * Upgrade from Organic groups access 6 to 7.
  27. */
  28. function og_access_update_7000(&$sandbox) {
  29. // Nothing to do, just clear cache.
  30. }
  31. /**
  32. * Set variable to show message about "Rebuilding permissions".
  33. */
  34. function og_access_update_7200(&$sandbox) {
  35. node_access_needs_rebuild(TRUE);
  36. variable_del('group_access_strict_private');
  37. }