You are here

function i18nviews_views_plugins in Internationalization Views 7.3

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

Implementation of hook_views_plugins().

File

includes/i18nviews.views.inc, line 225

Code

function i18nviews_views_plugins() {
  $path = drupal_get_path('module', 'i18nviews') . '/includes';
  $ret = array(
    'module' => 'i18nviews',
    'localization' => array(
      'i18nstrings' => array(
        'title' => t('Internationalization Views'),
        'help' => t("Use the locale system as implemented by the Views translation module."),
        'handler' => 'i18nviews_plugin_localization_i18nstrings',
        'path' => $path,
      ),
    ),
  );
  if (module_exists('i18n_taxonomy')) {
    $ret['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',
      ),
    );
  }
  return $ret;
}