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

Comments

nedjo’s picture

It would be a useful addition. Please post what you drafted, I'll take a look if I find time.

cwer@drupal.ru’s picture

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 :(

Bencoon’s picture

So, umm, how would blocking by vocabulary work? Or does that include actually work okay?