Friday, 31 December 2010

Configuring or disabling body field for blog

http://drupal.org/node/225909

mymodule.info file with contents
name = Blog Helper module
description = Make body field of blog not required
dependencies = blog
mymodule.module file with contents:

<?php

 
function blog_form_alter($form_id, &$form) {
   
$form['body_filter']['body']['#required'] = FALSE;
  }
?>
KOBA - Webdesign with Drupal

No comments:

Post a Comment

Source base installation of php, mysql and apache in ubuntu/ linux

Compile and Install a LAMP(Linux/Apache/MySQL/PHP) Server from Source In the last post, I described the method to install a LAMP ser...