Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
/**
* 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.
Comments
Comment #1
Jerenus CreditAttribution: Jerenus commentedHere is my patch.
Comment #2
amitaibuCommitted, thanks.
Comment #3
Jerenus CreditAttribution: Jerenus commentedAnother one in function og_vocab_is_og_vocab_field.
Another patch.
Comment #4
Jerenus CreditAttribution: Jerenus commentedComment #5
amitaibuCommitted, thanks.