Skip to Content

How can I hide an input form and insert a default value?

In this example, we are going to hide the "title" field and populate it with the first and last name. We use CCK to add the firstname and lastname.

In this case we catch the "profile_node_form" but you catch any form you like.

<?php
/**************************************************************************
* Implementation of hook_nodeapi();
*/
function sns_form_alter(&$form, $form_state, $form_id){

if ($form_id = 'profile_node_form'){
$form['title']['#required'] = false;
$form['title']['#access'] = false;
};
}

Drupal Active trail for menu

Drupal Active trail for menu - So, from my experience and from what I’ve seen in forums on drupal.org it seems most people battling with site development in Drupal sooner or later ends up at a point where you wish the menu system was more easily customizable.

5 websites to list, showcase and promote your Drupal website

Arguably Drupal is the best open source content management system out there, Drupal project usage statistics here show around 40 thousand downloads a day for Drupal core (including 5x, 6x and 7x alpha releases) for last 6 months or so. The 5 websites listed below are basically ideal places to showcase your Drupal site that you have build.

Released! Offline Drupal Handbook and API Documentation

Released! Offline Drupal Handbook and API Documentation - One of the benefits of joining the Drupalse Group is that members get first notice of updates and changes to How to do Everything with Drupal. This is an ebook that contains all the Drupal.org Handbook pages and the API documentation. The book is in CHM format which gives features like search, indexing and bookmarking on windows platforms.

Acquia Drupal Linux Installation is Simple!

Acquia Drupal Linux Installation is Simple! - by German Villacreces
Subscribe to Oshyn’s Web Content Management Blog.
Subscribe to Oshyn’s monthly newsletter.

What is Drupal ?

Drupal (pronounced /ˈdruːpəl/) is a free and open source content management system (CMS) written in PHP and distributed under the GNU General Public License. It is used as a back-end system for many different types of websites, ranging from small personal blogs to large corporate and political sites, including whitehouse.gov and data.gov.uk. It is also used for knowledge management and business collaboration.

Syndicate content