20 APIs in 20 Days: Feeds and Aggregation

Oct
15

This post is an entry in our 20 APIs in 20 Days series. Learn more about how best practices lead to sustainable development at www.trellon.com. Read More >>>

20 APIs in 20 Days: Remember to Bring Your Tokens

May
20

This post is an entry in our 20 APIs in 20 Days series. Learn more about how best practices lead to sustainable development at www.trellon.com.

Often, the most important part of a website is the users of the site itself. They are unique individuals who form the basis of thriving communities. It's vital to support users by delivering content in predictable and personalized ways. Read More >>>

20 APIs in 20 Days: The Forms API

Apr
08

This post is an entry in our 20 APIs in 20 Days series. Learn more about how best practices lead to sustainable development at www.trellon.com.

There's not much that has not been said about Drupal's Forms API, and it can be a challenging concept for developers who are used to working with other platforms. Any series talking about the underlying framework would be incomplete without some discussion of how it is used.

The Forms API in Drupal provides developers with a way to dynamically construct, modify and secure forms on your web sites. Instead of writing out the markup for individual form elements, developers define a form through an array that instructs Drupal on how to assemble the form and present it to users. The Forms API also tells Drupal how to validate form submissions and what to do with any data being received.

The real power of the API, however, lies in the fact that custom modules can modify forms as they are being generated. Developers can create new fields, provide additional validation conditions, and handle form submissions dynamically. This kind of extensibility is unique to Drupal, and represents a very different pattern for designing web applications. Read More >>>

20 APIs in 20 Days: View on Views API

Apr
05

This post is an entry in our 20 APIs in 20 Days series. Learn more about how best practices lead to sustainable development at www.trellon.com.

Views is the most widely used of all the contributed modules for Drupal. It offers the ability to easily create pages and blocks of dynamic content, which can be authored through a web based interface. It also allows site admins to attach filters to views, providing useful ways to drill down on data without too much effort.

The Views module also possesses a well defined API for working with views in code. Developers can call views within their modules, modify the way views are displayed, and even create new views programmatically. There is extensive documentation and community discussion about the different ways you can work with views in your code. This edition of the 20 APIs in 20 Days series seeks to provide an overview of some of the less well-known features of the API, that our team often finds useful when developing sites for clients. Read More >>>

20 APIs in 20 Days: The Hooks API and Custom Modules

Apr
01

This post is an entry in our 20 APIs in 20 Days series. Learn more about how best practices lead to sustainable development at www.trellon.com.

Ask someone what a 'hook' is, and their answer can tell you quite a lot about the person. The word gets used to describe things related to pirates, music, characters in campfire stories, aeronautics, etc. The word also has a specific meaning in programming, however, and serves as an important structural concept in most modern programming languages and frameworks.

Most Drupal developers are well acquainted with Drupal's hook system. Hooks are triggers that operate when certain events occur in the page generation process. They are capable of modifying data while it is being processed and carrying out other actions in response to certain conditions. Some of the more common hooks operate when a node loads, when a form is generated, or when someone saves user information. This part of the 20 APIs in 20 Days series provides an overview of the nature of hooks and how they operate as the foundation of most custom modules. Read More >>>