FINAL suepr merge step : added all modules to this super repos

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-19 16:46:59 +02:00
7585 changed files with 1723356 additions and 18 deletions

View File

@@ -0,0 +1,46 @@
<?php
/**
* @file
* Variable API module. Definition for Drupal core variables
*/
/**
* Implements hook_variable_type_info()
*/
function taxonomy_variable_type_info() {
$type['vocabulary_vid'] = array(
'title' => t('Vocabulary'),
'options callback' => 'taxonomy_variable_vocabulary_vid_list',
);
$type['vocabulary_name'] = array(
'title' => t('Vocabulary'),
'options callback' => 'taxonomy_variable_vocabulary_name_list',
);
return $type;
}
/**
* Options callback for vocabulary
*/
function taxonomy_variable_vocabulary_vid_list($variable, $options) {
static $list;
if (!isset($list)) {
foreach (taxonomy_get_vocabularies() as $vocab) {
$list[$vocab->vid] = $vocab->name;
};
}
return $list;
}
/**
* Options callback for vocabulary
*/
function taxonomy_variable_vocabulary_name_list($variable, $options) {
static $list;
if (!isset($list)) {
foreach (taxonomy_get_vocabularies() as $vocab) {
$list[$vocab->machine_name] = $vocab->name;
};
}
return $list;
}