og_access.install

  1. cis7 sites/all/modules/ulmus/og/og_access/og_access.install
  2. cle7 sites/all/modules/ulmus/og/og_access/og_access.install
  3. ecd7 sites/all/modules/ulmus/og/og_access/og_access.install
  4. elmsmedia7 sites/all/modules/ulmus/og/og_access/og_access.install
  5. harmony7 sites/all/modules/ulmus/og/og_access/og_access.install
  6. icor7 sites/all/modules/ulmus/og/og_access/og_access.install
  7. meedjum_blog7 sites/all/modules/ulmus/og/og_access/og_access.install
  8. mooc7 sites/all/modules/ulmus/og/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

sites/all/modules/ulmus/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. }
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.