Node is a generic term for a piece of content in Drupal. A node has properties like title,body,creationdate,status etc. We can create own custom content type using; create nodes. Drupal provides a Admin interface to create nodes, for Somecases we need to Automate this process. In such cases We Need to create nodes Programmatically for … Continue Reading
Archives
Excellent test-cases for Simpletest Drupal 7 Framework
Simpletest/Testing module allows the Drupal Developers to write test cases along module development Let us write a simple drupal module in Drupal 7 with testcase. Our Drupal module will simply create a Helloworld Block. Our custom module will be called as simpletestdemo. As from Drupal 7 the custom modules should reside in sites/default/modules directory. We … Continue Reading
SimpleTest a Testing Framework in Drupal 7
SimpleTest is a custom contributed module in Drupal 6. Now in Drupal 7 SimpleTest/Testing module is added to the Drupal core. Purpose of this module is to provide a custom testing framework for running automated unit and functional tests in Drupal. Important features of SimpleTest: 1. SimpleTest allows the Drupal developers to write test cases … Continue Reading
Drupal 7 quick overview
Drupal 7 is released officially. Recently I installed and checked the features of Drupal 7. I Noticed some of the new features/changes: 1. Easy Installation profiles are introduced. Now Drupal 7 will work with php 5.2,mysql 5.0. While Installing you have the option to select installation profile(standard or minimal). Standard will contain commonly used modules … Continue Reading
20 Drupal Modules to Boost Your Website’s Functionality
Drupal is a robust content management system that can do nearly anything you throw at it. Hundreds of Drupal modules–add-ons that extend the functionality of Drupal core–exist to help you create a powerful website. This is a roundup of some excellent Drupal modules covering the following areas: Managing and displaying content User engagement and game … Continue Reading
How to use AJAX in Drupal ?
This post shows how to use AJAX in drupal in very simple way. Follow the below steps , Go to sitesallmodules inside drupal folder. Create a folder custom_modules inside the modules directory, if you are not separating the custom module and contributed module . Create a folder called product inside custom_modules. The folder product should … Continue Reading
SubHub Introduces New Drupal 7 Based Cloud Web CMS
UK-based SubHub has released a new cloud web content management system built on Drupal 7. The company, which specializes in enabling non-technical customers to establish monetized content sites, has offered website building and content publishing since 2005 using a proprietary CMS. The new solution, SubHub Lite, drops the custom CMS in favor of the popular … Continue Reading
Simple Hello World Module for Drupal 6
This is a small and simple “Hello World!” module for quickstarters who uses Drupal 6x series. We need just one directory and two files: modules/simple_hello_world/ modules/simple_hello_world/simple_hello_world.info modules/simple_hello_world/simple_hello_world.module modules/simple_hello_world/simple_hello_world.info
1 2 3 4 |
; $Id$ name = Simple Hello World description = Description of Simple Hello World module core = 6.x |
modules/simple_hello_world/simple_hello_world.module
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<?php function simple_hello_world_menu(){ $items = array(); $items['simple-hello-world'] = array( 'title' => t('Simple Hello World!'), 'page callback' => 'simple_hello_world_page', 'page arguments' => array(1), 'access arguments' => array('access content'), 'type' => MENU_CALLBACK, ); return $items; } function simple_hello_world_page($name) { return "Hello World!"; } |
Urls to call your module: example.com/simple-hello-world example.com/?q=simple-hello-world File : Download hello world module for drupal
Open Source Website Building for Academic Community
OpenScholar is designed for academic environments as a tool for building academic web sites, such as a scholar’s personal site or an academic project site. OpenScholar represents a paradigm shift in how the personal academic and research web sites are created and maintained. Built on the open-source framework Drupal, OpenScholar makes it possible to create … Continue Reading
40+ Essential Drupal Modules You Can't Live Without
The Big Three “The big three” are important enough that they deserve a category of their own. Most drupal modules worth using have integrated with one of these three. Their importance simply can’t be stressed enough. Content Construction Kit (CCK) – Part of drupal 7; still a contrib in drupal 6. Allows you to define … Continue Reading