As referenced in #438394: Add to Drupal 7 Core and in relation to #439292: Port to Drupal 7:
What would be necessary to let the block classes be defined in the themename.info file? Could you point me in any direction? I looked for a while on api.drupal.org and in common.inc and theme.inc but couldn't find exactly what I wanted.
Altering the form to show a select list, even I managed, but filling it with what I put in .info...
Thanks in advance

Comments

todd nienkerk’s picture

Assigned: Unassigned »

@tstoeckler: We (Four Kitchens) are actually in the middle of developing this feature internally as a favor to Top Notch Themes. I've altered Shannon Lucas to add some TODO comments to the code and commit his latest work.

tstoeckler’s picture

Sounds cool. I would so much love to have this feature to show off Drupal 7 with...

todd nienkerk’s picture

Shannon Lucas has committed this feature to the 6.x-1.x-dev snapshot. It won't get recompiled for several hours, so you'll need to check it out of CVS instead of downloading it from the project page.

Shannon also added @TODO comments for all the stuff that still needs to be done.

tstoeckler’s picture

I just got my webserver back up and running and tried it out. I modified page.tpl.php as usual and garland.info, and even though the form appeared on block/edit as it should, the submission didn't quite work out.
Drupal gave me following messages:

* The block configuration has been saved.
* Array ( [red-border] => 0 [green-background] => 0 )
* wow

Note: I set the two block classes 'red-border' and 'green-background' in garland.info and submitted 'wow' to the arbitrary block class field. I'll try to debug a little...

tstoeckler’s picture

Well, stupid me. I realized that the submit function just does a drupal_set_message for debugging purposes so that it's not really intended to work currently.

Is there a status update, BTW? Is Four Kitchens / Shannon Lucas still on this? Would be nice to know.
I'll stick my head into it a little bit more, in the next few days(/weeks)...

todd nienkerk’s picture

tstoeckler: Progress on this feature has stalled a bit due to other work. I'll look into the status next week.

todd nienkerk’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
todd nienkerk’s picture

Status: Active » Closed (won't fix)

This was an interesting and potentially useful idea, but it will need to be ported to 7.x. Closing the issue, as it's unlikely this is going to happen anytime soon.