Needs review
Project:
Block API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Dec 2010 at 22:20 UTC
Updated:
26 Feb 2013 at 13:44 UTC
Jump to comment: Most recent file
Comments
Comment #1
sunJust to kick-start development.... *SCNR* :)
Comment #2
sunAnd to simplify development a bit -- committed that to HEAD, but with the following .info file trick:
Comment #3
sunForgot the essential hook_block_api_info() implementation. ;) Also committed attached patch.
Comment #4
mustanggb commentedShould this be hook_schema()?
Comment #5
mustanggb commentedSome more integration and a bit of menu structure rearranging.
Trying to make it act as close to Drupal core as possible.
Help was asked for so I gave it a shot, is this the right direction, feedback appreciated.
Comment #6
mustanggb commentedMissed out my own comment from #4.
Comment #7
sunUnfortunately, core's Block module is totally not an example that should be followed in any way.
Most of the submodule's code was carefully designed and coded already; also, to not repeat the mistakes of the core Block module.
Thus, I totally appreciate your work here, but I'm not sure I'm able to spot the actual improvements within that huge-rename-of-everything ;)
Can you roll a new and leave everything out that attempts to follow Block module? :)
Comment #8
mustanggb commentedI actually didn't look at or take anything from core Block.
What I did look at however was core Node in order to try and have Node and Block acting the same as far as UX is concerned.
So I'm not sure what is reminiscent of Block that needs to be removed.
Comment #9
mustanggb commentedIn short, help?
What needs to be done next?
Comment #10
mustanggb commentedSo here is a re-roll that tries to keep things as simple as possible.
This gets me as far as being able to create a block type and add fields to it.
However when trying to create a block (of the block type) the newly added fields do not appear, any hints why?
EDIT: Do we need a field_attach_form() somewhere?
Comment #11
jamestombs commentedDoesn't Bean do fieldable block types?
Thought Block API was all but obsolete (with the exception of a slightly better name).