Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/stylizer/stylizer.module | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @file |
5 |
* Stylizer module |
|
5 |
* Stylizer module.
|
|
6 | 6 |
* |
7 | 7 |
* This module allows styles to be created and managed on behalf of modules |
8 | 8 |
* that implement styles. |
... | ... | |
30 | 30 |
*/ |
31 | 31 |
function stylizer_ctools_plugin_directory($module, $plugin) { |
32 | 32 |
// Most of this module is implemented as an export ui plugin, and the |
33 |
// rest is in ctools/includes/stylizer.inc |
|
33 |
// rest is in ctools/includes/stylizer.inc.
|
|
34 | 34 |
if ($module == 'ctools' && $plugin == 'export_ui') { |
35 | 35 |
return 'plugins/' . $plugin; |
36 | 36 |
} |
... | ... | |
59 | 59 |
'description' => t('Custom styles can be applied to Panel regions and Panel panes.'), |
60 | 60 |
); |
61 | 61 |
|
62 |
// Load all mini panels and their displays.
|
|
62 |
// Load all mini panels and their displays. |
|
63 | 63 |
ctools_include('export'); |
64 | 64 |
ctools_include('stylizer'); |
65 | 65 |
$items = ctools_export_crud_load_all('stylizer'); |
... | ... | |
122 | 122 |
'path' => $plugin['path'], |
123 | 123 |
); |
124 | 124 |
|
125 |
// if no theme function exists, assume template.
|
|
125 |
// If no theme function exists, assume template.
|
|
126 | 126 |
if (!function_exists("theme_$plugin[theme]")) { |
127 | 127 |
$theme[$plugin['theme']]['template'] = str_replace('_', '-', $plugin['theme']); |
128 |
$theme[$plugin['theme']]['file'] = $plugin['file']; // for preprocess. |
|
128 |
// For preprocess. |
|
129 |
$theme[$plugin['theme']]['file'] = $plugin['file']; |
|
129 | 130 |
} |
130 | 131 |
} |
131 | 132 |
} |
132 | 133 |
|
133 | 134 |
return $theme; |
134 | 135 |
} |
135 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules