CodeSteps

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

Drupal

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 bootstrap Drupal from other applications?

Drupal bootstrap will load necessary commonly used functionality and it allows to bootstrap from other applications easily. Drupal allows to bootstrap its functionality by phase wise like basic initialization, caching, database layer, initialize variable system, etc.,. That means you can partially load Drupal and call necessary functionality required to your application. In order to use […]

How to set the default front page in Drupal?

Drupal allows displaying published articles or pages on the front page. It is simple to provide your article or page as a front-page by updating configuration settings. Below are the steps to set the default front page for your Drupal-based website. This article applies to: Drupal 7.x Step (1). Log in to your Drupal-based website […]

How to clear cache in Drupal based websites?

Drupal maintains the caching mechanism to improve your website’s performance. Sometimes it is required to clear the cache once you made system-wide changes or changes in the website’s current theme. This article explains the steps to clear the cache. This article applies to: Drupal 7.x Step (1). Log in to your Drupal-based website as an […]

How to add favicon into Drupal based website?

Favorite icon (favicon) or shortcut icon is an icon file containing most commonly 16×16 small icons associated with a website. Usually, it is a .ico file. Web browsers display a favicon in the browser’s address bar or on the tab. Drupal allows setting favicon through theme settings. This article explains the steps to set a […]

How to resolve “Fatal error: Class ‘PDO’ not found in /home/public_html/…/includes/database/database.inc on line 184” error in Drupal?

PDO (PHP Data Objects) is a thin data access layer and provides consistent way to access databases. Drupal uses PDO to interact with its databases. If the PDO is not enabled or PDO related libraries are not included you will get “Fatal error: Class ‘PDO’ not found in /home/public_html/…/includes/database/database.inc on line 184” error in Drupal. Below are […]

How to update Drupal core?

When any Drupal core updates are available, Drupal will display available updates in the Available updates report. This report is available only when you enable the Update manager module. This article explains how to update Drupal core. Step (1). Take a backup of your site and its database. Step (2). Log in to your Drupal-based […]

Scroll to top