function views_skinr_access_handler_display in Skinr 6
Same name and namespace in other branches
- 6.2 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_data in modules/
views.skinr.inc - Implementation of hook_skinr_data().
File
- modules/
views.skinr.inc, line 92 - 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;
}