You are here

crm_core_user_sync.views.inc in CRM Core 7

Same filename and directory in other branches
  1. 8.2 modules/crm_core_user_sync/views/crm_core_user_sync.views.inc

Provides support for the Views module.

File

modules/crm_core_user_sync/views/crm_core_user_sync.views.inc
View source
<?php

/**
 * @file
 * Provides support for the Views module.
 */

/**
 * Implements hook_views_plugins().
 */
function crm_core_user_sync_views_plugins() {
  return array(
    'argument default' => array(
      'crm_core_user_sync_url' => array(
        'title' => t('CRM Contact ID (from user ID from URL)'),
        'handler' => 'views_plugin_argument_default_contact_id',
        'parent' => 'views_plugin_argument_default',
      ),
      'crm_core_user_sync_user' => array(
        'title' => t('CRM Contact ID (from current user)'),
        'handler' => 'views_plugin_argument_default_contact_id_from_user',
        'parent' => 'views_plugin_argument_default',
      ),
    ),
  );
}

Functions