Closed (fixed)
Project:
FeedAPI
Version:
5.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Dec 2007 at 19:33 UTC
Updated:
29 Dec 2007 at 19:51 UTC
Jump to comment: Most recent file
when (only) feedapi module is activated, 2 blocks get created. one called s and the other one called c.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | feedapi_weird_blocks_fix.diff | 308 bytes | aron novak |
| #1 | 201291.patch | 1.06 KB | tomdeb |
Comments
Comment #1
tomdeb commentedmodified the hook_block implementation to create a incremented block only when there is a need for a block.
Index: feedapi.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/feedapi/feedapi.module,v
retrieving revision 1.23.2.101
diff -u -p -r1.23.2.101 feedapi.module
--- feedapi.module 14 Dec 2007 21:16:20 -0000 1.23.2.101
+++ feedapi.module 15 Dec 2007 19:39:16 -0000
@@ -172,9 +172,11 @@ function feedapi_block($op = 'list', $de
$blocks[$type]['info'] = t('FeedAPI: Quick create !preset', array('!preset' => $name));
}
case 'view':
- if (node_access('create', $delta)) {
- $blocks['subject'] = t('Create !preset', array('!preset' => $names[$delta]));
- $blocks['content'] = drupal_get_form('feedapi_simplified_form', $delta);
+ if ((node_access('create', $delta)) && (!empty($names))) {
+ $blocks[] = array(
+ subject => t('Create !preset', array('!preset' => $names[$delta])),
+ content => drupal_get_form('feedapi_simplified_form', $delta),
+ );
}
}
return $blocks;
Comment #2
aron novakThanks for the report. The fix is in the CVS (or you can apply the attached patch).
Comment #3
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.