Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/plugins/contexts/language.inc | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
2 | 3 |
/** |
3 | 4 |
* @file |
4 | 5 |
* Ctools context type plugin to hold the current language context. |
... | ... | |
40 | 41 |
* @return array |
41 | 42 |
* Array with all available settings. |
42 | 43 |
*/ |
43 |
function ctools_context_language_conf_defaults( $conf = array()) {
|
|
44 |
if ( ! is_array($conf) ) {
|
|
44 |
function ctools_context_language_conf_defaults($conf = array()) { |
|
45 |
if (!is_array($conf)) {
|
|
45 | 46 |
$conf = array( |
46 | 47 |
'preset_langcode' => (string) $conf, |
47 | 48 |
); |
... | ... | |
136 | 137 |
); |
137 | 138 |
|
138 | 139 |
// Prepare language type options. |
139 |
$language_type_options = drupal_map_assoc( language_types() );
|
|
140 |
$language_type_options = drupal_map_assoc(language_types());
|
|
140 | 141 |
$language_type_options['preset'] = t('Custom'); |
141 | 142 |
|
142 | 143 |
$form['language_type'] = array( |
Formats disponibles : Unified diff
Weekly update of contrib modules