You are here

function _service_links_get_vocabularies in Service links 7.2

Same name and namespace in other branches
  1. 6.2 service_links.admin.inc \_service_links_get_vocabularies()

Return a list of vocabularies generated by taxonomy module.

2 calls to _service_links_get_vocabularies()
service_links_admin_services_validate in ./service_links.admin.inc
Check if domain address textbox is empty when should be not, copy the selected terms into a unique list, check the path of custom'icons.
service_links_admin_settings in ./service_links.admin.inc
Menu callback administration settings for general options.

File

./service_links.admin.inc, line 458
Administrative page callbacks for Service Links module.

Code

function _service_links_get_vocabularies() {
  $list_vocs = taxonomy_get_vocabularies();
  $vocs = array();
  foreach ($list_vocs as $vocabulary) {
    if ($vocabulary->module == 'taxonomy') {
      $vocs[$vocabulary->vid] = check_plain($vocabulary->name);
    }
  }
  return $vocs;
}