00001 <?php 00002 00006 function views_test_permission() { 00007 return array( 00008 'views_test test permission' => array( 00009 'title' => t('Test permission'), 00010 'description' => t('views_test test permission'), 00011 ), 00012 ); 00013 } 00014 00018 function views_test_views_api() { 00019 return array( 00020 'api' => 3.0, 00021 'template path' => drupal_get_path('module', 'views_test') . '/templates', 00022 ); 00023 } 00024 00028 function views_test_views_data() { 00029 return variable_get('views_test_views_data', array()); 00030 } 00031 00035 function views_test_views_plugins() { 00036 return variable_get('views_test_views_plugins', array()); 00037 } 00038 00039 function views_test_test_static_access_callback($access) { 00040 return $access; 00041 } 00042 00043 function views_test_test_dynamic_access_callback($access, $argument1, $argument2) { 00044 return $access && $argument1 == variable_get('test_dynamic_access_argument1', NULL) && $argument2 == variable_get('test_dynamic_access_argument2', NULL); 00045 }