Révision 08475715
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/panels/plugins/styles/stylizer.inc | ||
---|---|---|
194 | 194 |
* Allow on-the-fly creation of styles in panes. |
195 | 195 |
*/ |
196 | 196 |
function panels_stylizer_pane_add_style(&$renderer, $plugin, &$conf, $type, $pid, $step = NULL) { |
197 |
if (!user_access('administer panels styles')) {
|
|
197 |
if (!user_access("administer panels $type styles")) {
|
|
198 | 198 |
return; |
199 | 199 |
} |
200 | 200 |
|
... | ... | |
275 | 275 |
* preconfigured style. |
276 | 276 |
*/ |
277 | 277 |
function panels_stylizer_edit_pane_style_form(&$form, &$form_state) { |
278 |
if (!user_access('administer panels styles') || !module_exists('stylizer')) { |
|
278 |
if (!user_access('administer panels pane styles') || !module_exists('stylizer')) {
|
|
279 | 279 |
return; |
280 | 280 |
} |
281 | 281 |
ctools_include('dependent'); |
... | ... | |
322 | 322 |
* Validate to see if we need to check the preconfigured values. |
323 | 323 |
*/ |
324 | 324 |
function panels_stylizer_edit_pane_style_form_validate(&$form, &$form_state) { |
325 |
if (!user_access('administer panels styles')) { |
|
325 |
if (!user_access('administer panels pane styles')) {
|
|
326 | 326 |
return; |
327 | 327 |
} |
328 | 328 |
|
... | ... | |
356 | 356 |
* Store the preconfigured values. |
357 | 357 |
*/ |
358 | 358 |
function panels_stylizer_edit_pane_style_form_submit(&$form, &$form_state) { |
359 |
if (!user_access('administer panels styles')) { |
|
359 |
if (!user_access('administer panels pane styles')) {
|
|
360 | 360 |
return; |
361 | 361 |
} |
362 | 362 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules