[development] Actions in core

Boris Mann boris at bryght.com
Wed May 2 03:12:14 UTC 2007

On 5/1/07, John VanDyk <jvandyk at iastate.edu> wrote:
> What are actions?


+1, awesome example, someone please copy / paste into the first of the
"Actions" handbook pages :P

> 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....

Boris Mann
Office 604-682-2889
Skype borismann

More information about the development mailing list