function _ctools_term_vocabulary_ctools_access_map_vids

Helper function to map the vids from old features to the new machine_name.

Add the machine_name key to $conf if the vids key exist.

Parameters

array $conf: The configuration of this plugin.

3 calls to _ctools_term_vocabulary_ctools_access_map_vids()
ctools_term_vocabulary_ctools_access_check in plugins/access/term_vocabulary.inc
Check for access.
ctools_term_vocabulary_ctools_access_settings in plugins/access/term_vocabulary.inc
Settings form for the 'by term_vocabulary' access plugin.
ctools_term_vocabulary_ctools_access_summary in plugins/access/term_vocabulary.inc
Provide a summary description based upon the checked term_vocabularys.

File

plugins/access/term_vocabulary.inc, line 116

Code

function _ctools_term_vocabulary_ctools_access_map_vids(&$conf) {
    if (!empty($conf['vids'])) {
        $conf['machine_name'] = array();
        $vocabularies = taxonomy_get_vocabularies();
        foreach ($conf['vids'] as $vid) {
            $machine_name = $vocabularies[$vid]->machine_name;
            $conf['machine_name'][$machine_name] = $vocabularies[$vid]->machine_name;
        }
    }
}