Can module block term
cwer@drupal.ru - October 16, 2007 - 20:14
| Project: | Content Blocker |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
How can i "teach" the module to block terms. I tried to create and tune category.inc but had no result.
Please, help me :)
Thank you

#1
It would be a useful addition. Please post what you drafted, I'll take a look if I find time.
#2
function category_contentblocker_data() {return array(
'category' => array(
'type_title' => t('Category'),
'title_table' => 'term_data',
'title_table_alias' => 't ',
'title_field' => 'name',
'title_id_field' => 'tid',
'title_path_prefix' => 'node',
'block_table' => 'term_node',
'block_field' => 'tid',
'primary_table' => 'term_node',
'primary_table_alias' => 'c',
'primary_id_field' => 'tid',
'primary_join_field' => 'tid',
'node_field' => 'vid',
),
);
}
I don't good understand this format, sorry :(
#3
So, umm, how would blocking by vocabulary work? Or does that include actually work okay?