IE Conditional Styles

Genesis does not include any conditional comments in page templates by default. Instead I highly recommend the Conditional Styles module, which comes built into the latest version of Genesis (6.x-2.2).

The Conditional Styles module allows you to add stylesheets for Internet Explorer in your subthemes info file.

Drush - Easily Manage Drupal 'Local' or 'Online' with Unix Command-Line

Drush (Drupal shell) is a program that you can install on your computer and/or on your web-hosting server, which allows you to easily build and maintain all aspects of your Drupal installation, whether that be a 'Local' site on your computer, or an online site.

It is a program with which you use your keyboard to issue Drupal 'text' commands in the Unix language, as opposed to your using the mouse in a visual user interface.

Theme Developer Module Breaks the Layout

The current version of the Theme developer module (which is a component of the Devel module) writes its own id to the body tag, overwriting the Genesis layout id.

Useful tags/components

Here are some of the useful tags and components in the Drupal core issue queue for those looking for a place to jump in:

Core subsystems

Drupal 6 - How to make profile.module form appear in any place.

I had to place profile module's fields in my own form.
Thanks to this blog, I managed to do it for Drupal 6.
Here is a snippet :)

function my_module_menu() {
$items['my_module/form'] = array(
'title' => 'My form',
'page callback' => 'my_module_form',
'access arguments' => array('access content'),
'description' => 'My form',
'type' => MENU_CALLBACK,
return $items;

function my_module_form() {
return drupal_get_form('my_module_profile_form','Personal Information');


The profile form is usually only available on the user editing form.
Some wrapper functions are necessary to make it work elsewhere.
function my_module_profile_form($user,$category)
{ global $user;
$user = user_load(array('uid' => $user->uid));

$edit = array();
foreach($user as $key => $value)

$edit[$key] = $value;

$form = profile_form_profile($edit, $user, $category);

// now let's pretend we're in hook_form_alter

// add a submit button
$form['op'] = array
'#type' => 'submit',
'#value' => t('Submittt'),
'#weight' => 30

// pass along the $category parameter as a hidden value


You will need to do the following before you install the module:


Subscribe with RSS Subscribe to RSS - Programmers