[development] Actions in core
drewish at katherinehouse.com
Wed May 2 15:24:18 UTC 2007
On 5/1/07, Boris Mann <boris at bryght.com> wrote:
> On 5/1/07, John VanDyk <jvandyk at iastate.edu> wrote:
> > Another issue is, uh, factoring of Drupal code. Core has a lot of
> > things that have never been factored out. In our example above, you'd
> > expect to be able to call a function like user_block_user($uid) so
> > that the action's 'do' op just becomes a wrapper around existing
> > functionality. Instead, currently user blocking is done inside
> > user_save(). So you could say "well, just do user_load(), change the
> > status, and do user_save() and stop mumbling about factoring!" OK,
> > that leads me to the next issue.
> And this "factoring" should lead to CRUD-type functions that can be
> used easily in install profiles as well....
I'm all for adding actions to core, I think the refactoring that would
ensue would be a very good thing. I'm assuming we'd also be able to
move hook_node_operations() into this framework.
More information about the development