You are here

function i18nviews_views_plugins in Internationalization Views 6.2

Same name and namespace in other branches
  1. 6.3 includes/i18nviews.views.inc \i18nviews_views_plugins()
  2. 7.3 includes/i18nviews.views.inc \i18nviews_views_plugins()

Implementation of hook_views_plugins().

File

includes/i18nviews.views.inc, line 97

Code

function i18nviews_views_plugins() {
  $path = drupal_get_path('module', 'i18nviews') . '/includes';
  return array(
    'module' => 'i18nviews',
    'localization' => array(
      'i18nstrings' => array(
        'title' => t('Views translation module'),
        'help' => t("Use the locale system as implemented by the Views translation module."),
        'handler' => 'views_plugin_localization_i18nstrings',
        'path' => $path,
      ),
    ),
    'argument validator' => array(
      'i18n_taxonomy_term' => array(
        'title' => t('Taxonomy term (i18n)'),
        'help' => t("Use the locale to interpret arguments."),
        'handler' => 'i18nviews_plugin_argument_validate_i18n_taxonomy_term',
        'path' => $path,
        'parent' => 'taxonomy_term',
      ),
    ),
  );
}