Posted by joachim on July 10, 2009 at 2:06pm
2 followers
Jump to:
| Project: | Bones |
| Version: | 6.x-1.0-unstable3 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
A drush command for this module would be pretty nice.
I think the same approach that I took for module_builder would be needed -- basically, remove most of bones_form_submit() to a general function bones_build_pages() which can be called either from bones_form_submit() or from a drush command module.
I haven't yet decided on a nice way to get all the various options (eg menu, default content type etc) but will be posting something here soon http://drupal.org/node/464504 that could be reused here perhaps.
Comments
#1
This would be handy - I'd been thinking about separating the page building logic from the form submit logic anyway, so other modules can use bones as an API.
I think the various options could just be passed in as a keyed array that bones_form_submit can build out of the submitted form values.