function views_skinr_access_handler_display in Skinr 6.2
Same name and namespace in other branches
- 6 modules/views.skinr.inc \views_skinr_access_handler_display()
Skinr access handler.
Parameters
$op: What kind of action is being performed. Possible values:
- "access skinr": access to edit skinr's selector
- "access skinr classes": access to edit skinr's additional classes
&$form: Passes in the $form parameter from hook_form_alter().
$form_state: Passes in the $form_state parameter from hook_form_alter().
Return value
TRUE if we get access, FALSE if we don't.
Related topics
1 string reference to 'views_skinr_access_handler_display'
- views_skinr_config in modules/
views.skinr.inc - Implementation of hook_skinr_config().
File
- modules/
views.skinr.inc, line 99 - Provide skinr handling for node.module
Code
function views_skinr_access_handler_display($op, &$form, $form_state) {
if ($access = skinr_access_handler($op, $form, $form_state)) {
// Views uses the same form_id for all forms, but it sets a $section
// variable to distinguish between them. So only show the skinr settings
// form on the style options form.
if ($form_state['section'] != 'style_options') {
$access = FALSE;
}
}
return $access;
}