first import

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-08 11:40:19 +02:00
commit 1bc61b12ad
8435 changed files with 1582817 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
/**
* @file
* Admin settings for Menu Token.
*/
/**
* Display settings form for Menu Token.
*
* @see menu_token_menu()
*/
function menu_token_settings_form() {
$form = array();
$options = array();
foreach (entity_get_info() as $entity => $info) {
$options[$entity] = $info['label'];
}
$form['menu_token_entities'] = array(
'#title' => t('Available entities'),
'#description' => t("Limit which entities are available in Menu Token's context settings select boxes."),
'#type' => 'checkboxes',
'#options' => $options,
'#default_value' => variable_get('menu_token_entities', array('node', 'user')),
);
return system_settings_form($form);
}