Recently, I was trying to find a simple way to change the default input format of fields to 'Full HTML'.
I created a hook_form_alter() function in my module and for my content type body, I wrote the following:
<?php
function MODULENAME_form_alter(&$form, &$form_state, $form_id) {
switch ($form_id) {
case 'MYCONTENT_node_form':
// Set default body field input format to Full HTML
foreach(element_children($form['body_field']['format']) as $key) {
$form['body_field']['format
You may already be aware of the following, but because I keep seeing this error in the files (probably some leftovers from a designer who is no longer working with us) I want to take a minute to bring this to everyone’s attention:
When you use attributes, such as “padding-left” and “margin-right”, in a .css file, you have to pay attention to these attributes when writing the overrides in the -rtl.css file.
Have you ever noticed that some CSS implementation in the Mozilla Firefox browser displays differently than in today’s other leading browsers, including Internet Explorer, Google Chrome, Opera and Safari? If you have, then this blog is for you! Often times, only web developers notice these differences, but if you are a keen observer of how a website looks, you will definitely spot the differences. This article discusses ways to implement the cross-browser compatibility check in Drupal sites.
It is considered by many to be the best content managing system in the world. We too are happy to be considered one of the best companies in the world.