Now all modules are in core modules folder

This commit is contained in:
Manuel Cillero 2017-08-08 12:14:45 +02:00
parent 5ba1cdfa0b
commit 05b6a91b0c
1907 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,17 @@
<?php
/**
* Implementation of hook_views_handlers().
*/
function content_taxonomy_views_handlers() {
return array(
'info' => array(
'path' => drupal_get_path('module', 'content_taxonomy') . '/includes/views',
),
'handlers' => array(
'content_taxonomy_handler_filter_many_to_one' => array(
'parent' => 'content_handler_filter_many_to_one',
),
),
);
}

View file

@ -0,0 +1,21 @@
<?php
/**
* Subclass of views_handler_filter_many_to_one_content
*
* provides values for the filters
* unsets the empty value for non required fields, which is added content_taxonomy_allowed_values
*/
class content_taxonomy_handler_filter_many_to_one extends content_handler_filter_many_to_one {
var $content_field;
function construct() {
parent::construct();
}
function get_value_options() {
$options = content_taxonomy_allowed_values($this->content_field);
unset($options['']);
$this->value_options = $options;
}
}