You are here

variable_views.module in Variable 7

Same filename and directory in other branches
  1. 7.2 variable_views/variable_views.module

Variable views module.

Provides variable values as views default arguments.

@todo Full views integration for variable table.

File

variable_views/variable_views.module
View source
<?php

/**
 * @file
 * Variable views module.
 *
 * Provides variable values as views default arguments.
 *
 * @todo Full views integration for variable table.
 */

/**
 * Implements hook_views_api().
 */
function variable_views_views_api() {
  return array(
    'api' => '3.0',
  );
}

/**
 * Implements hook_views_plugins()
 */
function variable_views_views_plugins() {
  $plugins = array(
    'argument default' => array(
      'variable' => array(
        'title' => t('Variable value'),
        'handler' => 'views_plugin_argument_default_variable',
      ),
    ),
  );
  return $plugins;
}

/**
 * Variable list for the argument.
 */
function _variable_views_variable_list() {
  return variable_list(variable_children(array_keys(variable_get_info())));
}

Functions

Namesort descending Description
variable_views_views_api Implements hook_views_api().
variable_views_views_plugins Implements hook_views_plugins()
_variable_views_variable_list Variable list for the argument.