This module allows users to create a single menu block for their Organic Group.  These menus are restricted
to either include nodes from the group, or menu items within this small section.  If you wish, you can re-use
part of your site menu tree (but only users with 'administer og menus' or 'administer all menus' have permission
to do this) in your OG menu.  Note that if you do this, any changes made to the local OG menu will affect that
part of the whole tree.

This module requires that all users able to create menus be given the permission 'administer menus'.
However, once you enable this module, 'administer menus' is no longer sufficient to have access to 
admin/build/menus, users must also be given a new permission 'administer all menus' available in the
access permissions for this module.

The permission 'administer og menus' allows a user to administer any menu for any organic group.  The 
permission 'administer own og menus' allows an administrator of an organic group to add/create/edit
a single menu for that group.

This module modifies the add/edit menu item form so that a user (who has javascript enabled due to the
features of this modification) to add menu items using nodes created in the group in question.

It also modifies the node/add form so that if a node is being added to a group, and the group has a menu, the 
possible menu parent items are restricted to the Og menu for that group.  If the group does not yet have a menu,
this module unsets $form['menu'], preventing users from adding their menus to the wrong place.

In order to completely prevent 'admin/build/menu' from being accessible to the wrong users, you
unfortunately also need to copy the following code into your template.php file (see drupal.org on the
use of a template.php file).


/**
 * This function overrides the permissions for the admin/build/menu page.  Permissions for the subpages
 * are handled by hook_form_alter.
 */
function phptemplate_item_list($items = array(), $title = NULL, $type = 'ul', $attributes = NULL) {
  // make sure we are on the right page
  if (arg(0) == 'admin' && arg(1) == 'build' && arg(2) == 'menu' && !arg(3)) {
    // first check to make sure this user has access to this.
    if (module_exists('og_menu') && !og_menu_admin_menu_access()) {
      drupal_access_denied();
      module_invoke_all('exit');
      exit();
      return;
    }
  }
  else {
    // send back the regular item list.
    return theme_item_list($items, $title, $type, $attributes);
  }
}