You are here

function microdata_get_vocabulary_info in Microdata 7

Gets the vocabulary info as registered by hook_microdata_vocabulary_info.

Return value

array An array of all vocabularies that have been registered by modules.

See also

hook_microdata_vocabulary_info()

Related topics

4 calls to microdata_get_vocabulary_info()
microdata_get_vocabularies in ./microdata.pages.inc
Helper function.
microdata_vocabulary_settings in ./microdata.admin.inc
Form builder; The microdata vocabulary settings form.
microdata_vocabulary_settings_refresh_vocabulary_cache in ./microdata.admin.inc
Submit callback; Caches microdata vocabularies.
microdata_vocabulary_settings_submit in ./microdata.admin.inc
Submit callback; Caches microdata vocabularies.

File

./microdata.module, line 807

Code

function microdata_get_vocabulary_info() {
  $vocabularies = array();
  foreach (module_implements('microdata_vocabulary_info') as $module) {
    $vocabularies = array_merge($vocabularies, call_user_func($module . '_microdata_vocabulary_info'));
  }
  return $vocabularies;
}