Development

Inclind is Rocking 2012

Whew! The first quarter of 2012 has flown by quickly, so fast in fact, that we've launched 7 websites, attended our third Drupalcon, and reconfigured our entire office! Learn more inside!

Awesomesauce Drupal Websites

We've made a lot of mention in the last week about all the awesome things we've done for Washingtons Green Grocer, there are many other sites we're doing awesome things with as well!

Washingtons Green Grocer's Yummy New Product Catalog!

We're excited to announce the launch of the product catalog for Washingtons Green Grocer! Check it out today!

We're excited to announce the launch of the product catalog for Washingtons Green Grocer. Over the last month, we've worked with Zeke and Lisa to restructure their website content and ecommerce products to create a more engaging experience ripe with rich content and photography. We've been monitoring their site with Google Analytics Real Time reporting and its going crazy with all the new visitors!

Adding Custom Form API Elements to Drupal

In a previous entry, we took a look at modifying the date field for a custom form. In this post, we will look at how to define our own form elements inside of Drupal, with validation and processing, to use in any custom form easily.

In a previous post, we took a look at how to collect a customized date in Drupal. You may have noticed that there are warnings that the Day field are undefined, and that Drupal returns a form error saying the 'specified date is invalid'. This is because we are not passing a day part. In most cases, you would, but using the previous example again of submitting a credit card expiration date, you don't need it. So, how can we solve this problem?

How to: Collecting Custom Dates in Drupal

The Drupal FormAPI provides some great ways to capture date type data. Lets take a look at how to implement this field in Drupal 7, with an example of capturing a credit card expiration date and customizing the form field.

The FormAPI, first introduced in Drupal 4, is a very powerful API that allows you to create forms effortlessly. Every major release of Drupal, the FormAPI has become more mature and flexible, allowing you to create full forms with fields, and provide ways of altering them on output with #after_build, or hook_form_alter, for example.

In Drupal 7, the FormAPI has a 'date' type form element. This field generally is used to collect data such as a birthdate, or a date in the future. By default, it provides a month, day, and year option as 3 inline select drop downs.

PHPApacheMySQLDrupal