function locale_views_data_alter

Implements hook_views_data_alter().

File

modules/locale.views.inc, line 200

Code

function locale_views_data_alter(&$data) {
    // Language field.
    $data['node']['language'] = array(
        'title' => t('Language'),
        'help' => t('The language the content is in.'),
        'field' => array(
            'handler' => 'views_handler_field_node_language',
            'click sortable' => TRUE,
        ),
        'filter' => array(
            'handler' => 'views_handler_filter_node_language',
        ),
        'argument' => array(
            'handler' => 'views_handler_argument_node_language',
        ),
        'sort' => array(
            'handler' => 'views_handler_sort',
        ),
    );
    $data['node']['specific_language'] = array(
        'title' => t('Specific language'),
        'help' => t('Sort by a specific language that the content is in.'),
        'sort' => array(
            'handler' => 'views_handler_sort_node_language',
        ),
    );
}