| 1 |
<?php
|
| 2 |
// $Id: simple_access.views.inc,v 1.2 2009/10/06 05:45:53 gordon Exp $
|
| 3 |
/**
|
| 4 |
* @file
|
| 5 |
* Provide Simple Access security method for views.
|
| 6 |
*/
|
| 7 |
|
| 8 |
/**
|
| 9 |
* Implements hook_views_plugins().
|
| 10 |
*/
|
| 11 |
function simple_access_views_plugins() {
|
| 12 |
return array(
|
| 13 |
'access' => array(
|
| 14 |
'simple_access' => array(
|
| 15 |
'title' => t('Simple access group'),
|
| 16 |
'help' => t('Will only make the views available if the user is apart of the specificed group.'),
|
| 17 |
'handler' => 'simple_access_views_plugin_group',
|
| 18 |
'uses options' => TRUE,
|
| 19 |
'path' => drupal_get_path('module', 'simple_access') . '/views',
|
| 20 |
),
|
| 21 |
),
|
| 22 |
);
|
| 23 |
}
|