We try make every module/feature to be as independ as possible. It could be that a module wants to get a certain vocab while the module defining it is not enabled…

> Op 13-apr.-2014 om 08:54 heeft Amitai Burstein <notifications@github.com> het volgende geschreven:
> 
> In capacity4more/modules/c4m/c4m_og_vocab/c4m_og_vocab.module:
> 
> > +}
> > +
> > +
> > +/**
> > + * Load the group vocabulary by the given vocabulary name.
> > + *
> > + * @param stdClass $group
> > + *   The group node
> > + * @param string $name
> > + *   The vocab name as set in the hook_c4m_og_vocab_info_vocabularies() hooks.
> > + *
> > + * @return stdClass $vocab
> > + */
> > +function c4m_og_vocab_load_group_vocabulary($group, $name) {
> > +  $vocabularies = c4m_og_vocab_info(C4M_OG_VOCAB_INFO_VOCABULARIES);
> > +  if (!isset($vocabularies[$name])) {
> is there a case this should be empty?
> 
> —
> Reply to this email directly or view it on GitHub.