Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/plugins/access/theme.inc | ||
---|---|---|
19 | 19 |
); |
20 | 20 |
|
21 | 21 |
/** |
22 |
* Settings form for the 'by theme' access plugin |
|
22 |
* Settings form for the 'by theme' access plugin.
|
|
23 | 23 |
*/ |
24 | 24 |
function ctools_theme_ctools_access_settings($form, &$form_state, $conf) { |
25 | 25 |
$themes = array(); |
... | ... | |
44 | 44 |
if (!empty($GLOBALS['theme'])) { |
45 | 45 |
$theme = $GLOBALS['theme']; |
46 | 46 |
} |
47 |
else if (!empty($GLOBALS['custom_theme'])) {
|
|
47 |
elseif (!empty($GLOBALS['custom_theme'])) { |
|
48 | 48 |
$theme = $GLOBALS['custom_theme']; |
49 | 49 |
} |
50 |
else if (!empty($GLOBALS['user']->theme)) {
|
|
50 |
elseif (!empty($GLOBALS['user']->theme)) { |
|
51 | 51 |
$theme = $GLOBALS['user']->theme; |
52 | 52 |
} |
53 | 53 |
else { |
Formats disponibles : Unified diff
Weekly update of contrib modules