You are here

function commons_groups_update_3102 in Drupal Commons 7.3

Ensure that the anonymous users is not listed as a group member, per http://drupal.org/node/1910874.

File

modules/commons/commons_groups/commons_groups.install, line 23

Code

function commons_groups_update_3102() {
  $delete = db_delete('og_users_roles')
    ->condition('uid', 0, '=')
    ->execute();
  return array();
}