function _term_depth_convert_config_vid_to_vocabulary_name

Parameters

$conf:

3 calls to _term_depth_convert_config_vid_to_vocabulary_name()
term_depth_term_depth_ctools_access_check in term_depth/plugins/access/term_depth.inc
Check for access.
term_depth_term_depth_ctools_access_settings in term_depth/plugins/access/term_depth.inc
Settings form for the 'term depth' access plugin.
term_depth_term_depth_ctools_access_summary in term_depth/plugins/access/term_depth.inc
Provide a summary description based upon the checked terms.

File

term_depth/plugins/access/term_depth.inc, line 61

Code

function _term_depth_convert_config_vid_to_vocabulary_name(&$conf) {
  // Fallback on legacy 'vid', when no vocabularies are available.
  if (empty($conf['vocabulary']) && !empty($conf['vid'])) {
    $vocabulary = _ctools_term_vocabulary_machine_name_convert(array(
      $conf['vid'],
    ));
    $conf['vocabulary'] = reset($vocabulary);
    unset($conf['vid'], $vocabulary);
  }
}