function views_php_plugin_access::options_form in Views PHP 6
Same name and namespace in other branches
- 7.2 plugins/views/views_php_plugin_access.inc \views_php_plugin_access::options_form()
- 7 plugins/views/views_php_plugin_access.inc \views_php_plugin_access::options_form()
Implements views_plugin#options_form().
File
- plugins/
views/ views_php_plugin_access.inc, line 30
Class
- views_php_plugin_access
- Access plugin that provides access control based on custom PHP code.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form += views_php_form_element($this, FALSE, array(
'php_access',
t('Access code'),
t('If the code returns TRUE the requesting user is granted access to the view.'),
FALSE,
), array(
'$view_name' => t('The name of the view to check.'),
'$display_id' => t('The ID of the display to check.'),
'$account' => t('The account to check.'),
), array(
'access_options',
));
}