Tuesday, January 18, 2011

Programmer's reference to the Drupal Forms API

This document provides a programmer's reference to the Drupal Forms API.

Monday, December 21, 2009

What are conditional comments?

Conditional comments only work in Explorer on Windows, and are thus excellently suited to give special instructions meant only for Explorer on Windows. They are supported from Explorer 5 onwards, and it is even possible to distinguish between 5.0, 5.5 and 6.0.

Deprecated XHTML Elements


This page will list the Elements and attributes that have been deprecated in the most recent version of XHTML, XHTML 1.0.

Friday, December 04, 2009

How to find which version of Drupal I'm running?


If it's available, go to Administer >> Reports >> Status report. This will list your version number if you have Drupal 6.0 or later. In Drupal 5.x and earlier, the path to go to is Administer >> Logs >> Status report.

Failing that, look for a file called CHANGELOG.txt in the root of your Drupal directory and open it up to find the version you are running.

If CHANGELOG.txt is missing, you can also check in system.module for a line at the top like:

define('VERSION', '5.5');

If this is present, it will tell you which version you are running. If not, you have a version earlier than 4.7.2.

What are the content types associated with core Drupal modules?



Blog Entry
A Blog (short for weblog) is an online journal or diary, and the core Blog module allows registered users on your site to create their own blogs.
Book Page
Book pages are designed to be part of a collaborative book, enabled by the core Book module.
Comment
Comments actually aren't nodes, so Comment is technically not a "content type". Enabling the Comment module allows site visitors to add comments (typically short notes and replies to other comments) to nodes on the site.
Forum
A Forum node defines a topic for a forum discussion; people can reply to the topic by using comments. Forum nodes are organized into subject areas via a Taxonomy (list of categories).
Page
The Page content type is enabled in Drupal in the default installation profile. Typically Pages are used for static content that can (but are not required to) be linked into the main navigation bar.
Poll
A poll is where a multiple choice question is asked, and users can answer and see other people's answers to questions.
Story
The Story content type is enabled in Drupal in the default installation profile. Stories are generally used for information whose relevance decreases as time passes (such as news items), so that newer Stories will typically be placed higher on the page than older Stories.