I added a feed in the node " Feed (lightweight items)" and made a block with it. But near every link in my block there is a link and icon "blog it". I don't want my users add these articles to their blogs. How to disable this option?
Thank you.

Comments

NeuZeitgeist’s picture

If there is any solution for this problem?

mustafau’s picture

Assigned: NeuZeitgeist » Unassigned
Status: Active » Fixed

You should look into theme_feedapi_aggregator_block_item() function in feedapi_aggregator.module.

NeuZeitgeist’s picture

And what should I do?

NeuZeitgeist’s picture

Status: Fixed » Active
mustafau’s picture

Comment out following lines:

  global $user;

  if ($user->uid && module_exists('blog') && user_access('edit own blog')) {
    if ($image = theme('image', 'misc/blog.png', t('blog it'), t('blog it'))) {
      $output .= '<div class="icon">'. l($image, 'node/add/blog', array('title' => t('Comment on this news item in your personal blog.'), 'class' => 'blog-it'), "iid=$item->iid", NULL, FALSE, TRUE) .'</div>';
    }
  }
mustafau’s picture

Status: Active » Fixed
NeuZeitgeist’s picture

It works. Thank you very much.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.