You are here

function opigno_og_access_menu_alter in Opigno 7

File

modules/opigno_og_access/opigno_og_access.module, line 19
Enable access control for private and public groups and group content.

Code

function opigno_og_access_menu_alter(&$items) {

  // This is very bad/hacky. Do it like this for now.
  // Too much pressure :-(.
  $items['opigno-calendar']['access callback'] = 'user_is_logged_in';
  $items['opigno-calendar']['access arguments'] = NULL;
  $items['forum']['access callback'] = 'user_is_logged_in';
  $items['forum']['access arguments'] = NULL;
}