You are here

function og_needs_migrate in Organic groups 7

Flag / unflag the node access grants for rebuilding, or read the current value of the flag.

When the flag is set, a message is displayed to users with 'access administration pages' permission, pointing to the 'og-migrate' confirm form in the og-migrate module.

Parameters

$migrate: (Optional) The boolean value to be written.

Return value

(If no value was provided for $migrate) The current value of the flag.

2 calls to og_needs_migrate()
og_help in ./og.module
Implements hook_help().
og_migrate_init in og_migrate/og_migrate.module
Implements hook_init().
2 string references to 'og_needs_migrate'
og_update_7000 in ./og.install
Upgrade from Organic groups 6 to 7.
og_update_7001 in ./og.install
Add group membership entities instead of field data.

File

./og.module, line 3221
Enable users to create and manage groups with roles and permissions.

Code

function og_needs_migrate($migrate = NULL) {
  if (!isset($migrate)) {
    return variable_get('og_needs_migrate', FALSE);
  }
  elseif ($migrate) {
    variable_set('og_needs_migrate', TRUE);
  }
  else {
    variable_del('og_needs_migrate');
  }
}