Actions are the most important operation on Drupal: saving content, updating comments, deleting users, changing settings... But we can do a lot more!
- We can expose these actions to users, so they can choose their own actions
- We can expose these actions to external sites, like Web Services
- We can perform the same action on several contents at once
- We can describe things like post a Twitter message, show a Flickr image or even exchange data with Amazon as actions, using the very same API
- We can, why not, include this API into Drupal Core in the future?
Lets plan the new API to describe these actions. Welcome.
Our plan include:
- Build upon D7 first
- Use OOP as much as possible
- Allow plugins and extensions
Action as a Class
Posted by brmassa on July 16, 2009 at 11:21am
Guys,
Following Earl "merlinofchaos" Miles' Views and Panels, we are planning to code the new API using OOP (object oriented programming). It eliminates the need of callback functions, but also allow other modules to overwrite its functionalities and expand them using "plugins".
Read more