Posted by leewillis77 on February 15, 2012 at 12:06pm
3 followers
Jump to:
| 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.
| Attachment | Size |
|---|---|
| patch.diff | 718 bytes |
Comments
#1
Thanks,
Committed here: http://drupalcode.org/project/twitter_pull.git/commit/1d99060
#2
Automatically closed -- issue fixed for 2 weeks with no activity.