Révision 2545992a
Ajouté par Assos Assos il y a environ 8 ans
drupal7/sites/all/modules/panelizer/plugins/entity/PanelizerEntityDefault.class.php | ||
---|---|---|
3290 | 3290 |
'view modes' => array(), |
3291 | 3291 |
); |
3292 | 3292 |
if (!empty($values[0]['status'])) { |
3293 |
$settings['help'] = $values[0]['help']; |
|
3293 |
// This field is optional so should not always be applied. |
|
3294 |
if (isset($values[0]['help']) && !empty($values[0]['help'])) { |
|
3295 |
$settings['help'] = $values[0]['help']; |
|
3296 |
} |
|
3294 | 3297 |
|
3295 | 3298 |
foreach ($values as $view_mode => $config) { |
3296 | 3299 |
if (!empty($view_mode) && !empty($config)) { |
3297 | 3300 |
// Fix the configuration. |
3298 |
// Make sure each setting is disabled if the view mode is |
|
3299 |
// disabled. |
|
3301 |
// Make sure each setting is disabled if the view mode is disabled. |
|
3300 | 3302 |
if (empty($config['status'])) { |
3301 | 3303 |
foreach ($config as $key => $val) { |
3302 | 3304 |
$config[$key] = 0; |
Formats disponibles : Unified diff
Weekly update of contrib modules