When using the function og_vocab_get_accessible_vocabs without passing any entity type or entity the function throws the next notices:

Notice: Undefined index: entity keys in entity_extract_ids() (line 7636 of /var/www/drupal/includes/common.inc).
Notice: Undefined index: entity keys in entity_extract_ids() (line 7637 of /var/www/drupal/includes/common.inc).

Because those arguments are not mandatory i reset the $bundle variable and if the arguments are passed to the function then we need to use the entity_extract_ids function.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RoySegall’s picture

Status: Active » Needs review
amitaibu’s picture

FileSize
802 bytes
RoySegall’s picture

FileSize
1.06 KB

Let's just use the entity and the bundle as arguments.

amitaibu’s picture

Status: Needs review » Fixed

Committed, thanks.

bricel’s picture

Assigned: Unassigned » bricel
Status: Fixed » Needs review
FileSize
439 bytes

Fix previous patch function call with wrong parameter.

amitaibu’s picture

Status: Needs review » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

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