CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

Drupal 7

Drupal 7 – Adding and deleting Users

Drupal provides a simple user interface to create or delete the users from the Drupal system. User accounts are required to login into the Drupal system to access Drupal functionality. In this article, we are going to discuss the steps required to create or delete the users. Step 1. Sign in to your Drupal-based website […]

Drupal 7 – Creating a module (Part – 6)

We are almost done with our module. Just we have to implement the functionality when the module is installed or uninstalled. Drupal 7 loads the functionality from “.install” file whenever the module is installed or uninstalled. We need to write hook functions “hook_install” and “hook_uninstall” in “.install” file. So, Drupal 7 will call these functions […]

Drupal 7 – Creating a module (Part – 5)

We have successfully created a configuration settings form for our Example module. In our previous article we have instructed Drupal to create a form for us. Most of the form functionality is prepared for us by Drupal. Now when we submit our form, Drupal will call “example_admin_settings_submit” function. In this article, we are going to […]

Drupal 7 – Creating a module (Part – 4)

As of now, we have created a node on the Configuration page to place the link to change the example module’s configuration settings. Now we have to implement the functionality to run when the user clicks on the Example node from the Configuration page. That means, we have to tell Drupal to display the Example […]

Drupal 7 – Creating a module (Part – 3)

In our previous article, we have created a simple module that displays a “Welcome!” message whenever the user log-in to the Drupal-based website(s). Is that so simple to develop a module in Drupal 7? Yes, it is. But not this simple. Modules will do a lot of things. We have seen a simple part of […]

Drupal 7 – How to enable/disable Modules?

Drupal allows extending its functionality through modules. Drupal will display all installed modules on its modules page. And it allows to enable or disable the modules. Drupal will load and run the modules which are enabled. This article explains the steps to enable/disable modules in Drupal 7. Step 1. Log in to your Drupal website […]

Drupal 7 – Creating a module (Part – 1)

Drupal is the famous Content Management System used to build websites. Drupal allows extending its functionality by creating modules. Drupal has its own Core modules and allows users to develop their own modules; say Contributed modules and link with them with Drupal. In this series of articles, we are going to discuss creating modules in […]

How to run test cases in Drupal?

The testing module in Drupal is useful for running automated test cases. It can be used to verify the working state of Drupal before and after any code changes. This article explains how to run test cases in Drupal. This applies to: Drupal 7.x Step (1). Log in to your Drupal-based website as an administrator. […]

How to set Drupal to generate clean URLs?

When you are developing websites using Drupal™ (Open Source CMS), one thing you need to remember is enabling clear URLs is recommended. Once you enable it, the URLs will become more readable. Eg: example.com/q?=user will become as example.com/user. This article explains how to enable Clear URLs in Drupal™ based websites. This article applies to: Drupal 7.x […]

Scroll to top