You are here

simple_access.views.inc in Simple Access 6.2

Same filename and directory in other branches
  1. 8.3 simple_access.views.inc
  2. 7.2 simple_access.views.inc

Provide Simple Access security method for views.

File

simple_access.views.inc
View source
<?php

/**
 * @file
 * Provide Simple Access security method for views.
 */

/**
 * Implementation of hook_views_plugins().
 */
function simple_access_views_plugins() {
  return array(
    'access' => array(
      'simple_access' => array(
        'title' => t('Simple access group'),
        'help' => t('Will only make the views available if the user is apart of the specificed group.'),
        'handler' => 'simple_access_views_plugin_group',
        'uses options' => TRUE,
        'path' => drupal_get_path('module', 'simple_access') . '/views',
      ),
    ),
  );
}

Functions

Namesort descending Description
simple_access_views_plugins Implementation of hook_views_plugins().