HEX
Server: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: iestorre (46869)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/iestorre/www2/modules/views/tests/views_test.module
<?php

/**
 * Implements hook_perm().
 */
function views_test_perm() {
  return array('views_test test permission');
}

/**
 * Implements hook_views_api().
 */
function views_test_views_api() {
  return array(
    'api' => 3.0,
    'template path' => drupal_get_path('module', 'views_test') .'/templates',
  );
}

/**
 * Implements hook_views_data()
 */
function views_test_views_data() {
  return variable_get('views_test_views_data', array());
}

/**
 * Implements hook_views_plugins()
 */
function views_test_views_plugins() {
  return variable_get('views_test_views_plugins', array());
}

function views_test_test_static_access_callback($access) {
  return $access;
}

function views_test_test_dynamic_access_callback($access, $argument1, $argument2) {
  return $access && $argument1 == variable_get('test_dynamic_access_argument1', NULL) && $argument2 == variable_get('test_dynamic_access_argument2', NULL);
}