/**
 * Access function to determine if a user has access to the menu item.
 *
 * @param $node
 *   The group node.
 * @param $perm
 *   The permission to check is user has.
 * @param $vid
 *   Optional; The vocabulary ID.
 *
 * @return
 *   TRUE if user has access to the menu item.
 */
function og_vocab_vocabulary_access($entity_type, $entity_id, $perm, $vocabulary = NULL) {
  if (!$entity = entity_load_single($entity_type,$entity_id)) {
    return FALSE;
  }

Here the number of function parameters and variable names have difference.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jerenus’s picture

amitaibu’s picture

Status: Needs review » Fixed

Committed, thanks.

Jerenus’s picture

/**
 * Return TRUE if field is associated with OG-vocab.
 *
 * @param $field_name
 *   The field name.
 *
 * @see og_is_group_audience_field()
 */
function og_vocab_is_og_vocab_field($entity_type, $field_name, $bundle_name) {

Another one in function og_vocab_is_og_vocab_field.

Another patch.

Jerenus’s picture

Title: Documentation errors in og_vocab.module line #1314 » Documentation errors in og_vocab.module
amitaibu’s picture

Status: Needs review » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.