Download & Extend

Can't hide the title when creating block using

Project:Twitter Pull
Version:7.x-1.0-rc1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

When adding blocks by hooking onto hook_twitter_pull_blocks() it is impossible to hide the title by setting to FALSE, e.g. the code below will output a title based on the "name" parameter, ignoring the FALSE setting of title.

function twitter_block_twitter_pull_blocks() {
  return array(
    0 => (object) array(
      'delta' => 'myblockid',
      'tweetkey' => variable_get ("myblockusername_username", TWITTER_USERNAME),
      'name'  => 'MyBlock Tweet Feed',
      'title' => FALSE,
      'number_of_items' => 3,
    ));
}

Patch attached that resolves this.

AttachmentSize
patch.diff718 bytes

Comments

#1

Status:needs review» fixed

Thanks,
Committed here: http://drupalcode.org/project/twitter_pull.git/commit/1d99060

#2

Status:fixed» closed (fixed)

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

nobody click here