Karthik Kumar D K

Karthik Kumar D K

A Techie at heart, Karthik has a penchant for programming and open source. His repertoire includes expertise in JAVA and PHP. His work includes developing innovative Drupal modules and contributing to the Drupal Community in every possible way.

Software programmer / Drupal Developer having experience in web applications development, implementation and having strong knowledge of technical specifications, workflow development and deploying.


Articles by Karthik Kumar D K

Security Hardening - Nginx Response Headers

By Karthik Kumar D K on 20th Jun 2021
Now-a-days, web based attacks are one of the most common types of cybercrime, and in most cases, the attacked protocol is the HTTP, while the component that receives the attacks is the web server. Hardening Nginx HTTP headers becomes necessary for reducing any attacks to the web server. And how to harden Nginx response HTTP headers? - HTTP headers are pieces of info

Is Feedback really necessary in Person's Life?

By Karthik Kumar D K on 25th Apr 2021
Is feedback really necessary? Do people really care about the given feedback? Do people really care to give feedback? It all depends on the situation and people, whether to give or take the given feedback. And honestly everyone has their own views to consider or not to consider the feedback. Every individual might have come across many people giving/taking the feedb

Drupal 7 to Drupal 8/9 Audits

By Karthik Kumar D K on 24th Apr 2021
Migration from Drupal 7 to Drupal 8/9 is more of a re-build than a simple upgrade. We can move the content. users and other configuration with the help of core system, But still their will be a need to re-write custom modules or themes and some times contrib ones as well. By having a list which helps us to Audit any D7 Project to Drupal 8/9 migration would help start quick.

Bangalore to Tirumala (2 Days + 1 Night)

By Karthik Kumar D K on 24th Apr 2021
Two days Trip from Bangalore to Tirumala to Bangalore, If you are a couple riding on bike or you are a family driving in car, then this two days plan works very well. Below is the route mentioned where you can plan accordingly. You can book the Dharshna Tickets & Stay via Online Booking or you can get it once you reach their based on the Crowd on Tirumala. Tirumala

For Indian Youth..! What should you know about Nambi Narayanan?

By Karthik Kumar D K on 11th Apr 2021
Lets see the background, In 1992, India signed an agreement with Russia.. Aggrement was for transfer of technology to develop cryogenic fuel-based engines and procurement of two such engines for ₹ 235 crore. However, Russia did not materialize after the US pres

The Shawshank Redemption Movie about Life, Hope, and Freedom

By Karthik Kumar D K on 10th Apr 2021
Shawshank Redemption is one of the best movies ever made. Even today its stands above The Godfather movie on the IMDb top rated 250 movies. A must watch movie. Their are many lines in the movie by the characters, which tells about Life, Hope and Freedom. In this article, I'm gona list of few of them. Thats The Beauty Of Music. They C

The Confident You, Taking Charge of Your Life

By Karthik Kumar D K on 9th Apr 2021
Recently I had to attend a virtual session by Transformation Coach and a Psychologist. Where in the session, she was saying about how one can take charge of their own life.. by being confident! It was a great session.. started with, Do you often feel that you have no control over your life? Do you feel that you are just drifting day after day, without any goal and direction?. It was really nice to

Heat waves in India and Current Temperature Status and Warning for next five Days

By Karthik Kumar D K on 29th Mar 2021
In 21st century due to climate changes, global temperature can increase means heat waves would be compartively more. This might affect human health a lot and in some cases can lead to death. We should know that, these heat waves will affect many people in small amount of time. In India, these Heat waves generally occur from March - June, & in some cases, they might

Drupal JSON API, Deep Dive - Part 2

By Karthik Kumar D K on 28th Mar 2021
In Part 2, Let's see about the Core concepts like Types, URL structure, HTTP methods, Request headers, Response codes and Document structure i.e Data in the request body. JSON:API module will provide the APIs for Drupal entity types and bundles, where every bundle will have its own unique url path, which will have a shared pattern. Types

Locally Setup and Scan your Docker images via Clair

By Karthik Kumar D K on 24th Mar 2021
Docker Images contain not only application code, but a OS and additional utilities to make application run as expected. Images can also be vulnerable its better not have any CVE's in image. Running scans are one of the way to protect from CVE's. These container scanning tools scan for known vulnerabilities in the image. In this article, We use Clair to scan a Docker

Things to Know before you go for Registration of a Plot or Property in Bangalore

By Karthik Kumar D K on 22nd Mar 2021
When you decide to buy a property or land than a normal business deal where you get a plot of land in exchange of money. Before going into details of plot registration, there are a few terms you must know. Registration fee - It's a small percentage of total cost of plot paid by buyer to state government for registering property on his name.

When Police doesnot register your FIR? Contact Judge!

By Karthik Kumar D K on 22nd Mar 2021
If you are reporting a cognisable crime and Police refuse to register your FIR, you can make a complaint to a higher ranking officer such as the Superintendent of Police (SP), the Deputy Inspector General (DIG) or the Inspector General of Police (IGP). You can also complain to the nearest Judicial Magistrate, who will order the police to register the FIR if deemed necessary.

Monitoring Web Application with ELK Stack

By Karthik Kumar D K on 19th Mar 2021
For Auditing & Troubleshooting issues in an application, log data is very useful. And to make it easy to read the log data via some kind of tool will make developers & maintainers happy. However, not all the log data for any event is not needed to be stored in the log record. Means, Each log record should have only the information needed for further notice or further debugging. Strictly all sensit

Drupal JSON API, Deep Dive - Part 1

By Karthik Kumar D K on 18th Mar 2021
JSON:API module is implemented based on JSON:API Specification. Means, a specification that says how client should request the resources to be fetched or modified, & also how server should respond to such requests. This JSON:API is designed to minimize the number of requests and also minimize the amount of data transmitted between clients & servers. And such efficiency is achieved without compromi

Privatisation of Public Sector Banks & Banks Strike in March 2021

By Karthik Kumar D K on 15th Mar 2021
The Finance Minister has announced in Union Budget of India for 2021-22, that two Public Sector Banks (PSBs) will be Privatised. The policy of government in last three decades of economic reforms was to sell a part of shares in Public Sector Undertakings (PSUs) including PSBs to public while retaining the controlling share in its own hands. Privatisation of PSBs is

COVID-19 Vaccination in India, Covishield and Covaxin

By Karthik Kumar D K on 10th Mar 2021
In January 2021 India started National Vaccination programme against the SARS-CoV-2 virus which has caused the COVID-19 pandemic. The drive prioritises healthcare and frontline workers, and then those over the age of 60, and then those over the age of 45 and suffering from certain comorbidities. In January 2021 Secretary-General of the United Nations Antonio Guterre

Be Aware of Chain Snatchers & Tips to Prevent Chain Snatching

By Karthik Kumar D K on 4th Mar 2021
Chain Snatching is one of the crime happening across India by different individuals or gangs. One should be aware while being in public places and should be cautious always. Chain snatching an easy job unlike burglaries, robberies or dacoities. These chain snatchers mostly will be from different places, They will often go to a new places and do their job and leave within hours.

World Wildlife Day

By Karthik Kumar D K on 3rd Mar 2021
On 20 December 2013, United Nations General Assembly (UNGA), in its resolution UN 68/205, decided to proclaim 3 March, the international day of the adoption of the Convention on International Trade in Endangered Species of Wild Fauna and Flora (CITES) on the planet raise awareness and benefits fauna and flora in 1973, as World Wildlife Day, which was proposed by Thailand, to celebrate and raise aw

Reduce the Risk of Becoming a Sexual Assault Victim!

By Karthik Kumar D K on 26th Feb 2021
To Reduce the risk for you to becoming a sexual victim, you have to take some preventative measures, which will help you to avoid a risky situations from escalating. Anyone can be the target of sexual assault, regardless of age, gender, race, ethnicity, sexual orientation, sexual history, or social class. There is no stereotypical victim or rapist. What's bad? - Nea

Lessons Learnt from three years of Relationship

By Karthik Kumar D K on 25th Feb 2021
Living together for almost three years is a good amount of journey in your life. For me atleast like, part of me feels like time is absolutely flying and the other half feels like we have been married since three years. We have certainly not been perfect, but I'm gona share fews lessons which i learnt out of these three years which i spent in my relationship. 1. Imp

Researchers solve riddle of plant immune system

By Karthik Kumar D K on 24th Feb 2021
How do plants build resilience? An international research team led by the University of Gottingen studied the molecular mechanisms of the plant immune system. They were able to show a connection between a relatively unknown gene and resistance to pathogens. The results of the study were published in the journal The Plant Cell. Scientists from "PRoTECT" -- Plant Resp

Prime accused in gang-rape case nabbed after two decades

By Karthik Kumar D K on 23rd Feb 2021
Prime accused Bibekananda Biswal in a sensational gangrape that shook Odisha in its aftermath in 1999 is now caught by Police from Aamby Valley in Lonavala in Maharashtra. The incident, that occurred in 1999, had created a state-wide outrage. A total of three persons were accused in the case. Two of them - Pradeep Sahi and Dhirendra Mohanty, were arrested and convic

Coronavirus, Discovered in the 1960s, Serious Respiratory Tract Infections

By Karthik Kumar D K on 22nd Feb 2021
Coronaviruses are a group of viruses that cause diseases in mammals and birds that include diarrhea in cows and pigs, and upper respiratory disease in chickens. In humans, the virus causes respiratory infections, which are often mild, but in rare cases are potentially lethal. There are no vaccines or antiviral drugs that are approved for prevention or treatment.

International Mother Language Day

By Karthik Kumar D K on 21st Feb 2021
International Mother Language Day is a worldwide annual observance held on 21st February to promote awareness of linguistic and cultural diversity and to promote multilingualism. First announced by UNESCO on 17 November 1999, it was formally recognized by the United Nations General Assembly with the adoption of UN resolution 56/262 in 2002. Mother Language Day is pa

Tips to Live a Happy Life, How to be Happy?

By Karthik Kumar D K on 18th Feb 2021
What Is Happiness? Happiness is an emotional state characterized by feelings of joy, satisfaction, contentment, and fulfillment. While happiness has many different definitions, it is often described as involving positive emotions and life satisfaction. And Why Happiness is needed in Life? in simple, We become more creative, witty, energetic and fun to be around and it can also lead us to become mo

Bangalore to Rameswaram (3 Days + 2 Nights, Trip Plan)

By Karthik Kumar D K on 10th Feb 2021
Three days Trip from Bangalore to Rameswaram to Bangalore, If you are a Couple riding on Bike or You are a Family driving in Car, then this three days plan works very well. Below is the route mentioned where you can plan accordingly, if at all you need to spend some more time in some place in the list, you can skip the next place in the planned route. Rameshwaram is a small Hindu pilgrimage town a

If farmers have greater choice to sell to whoever & wherever! Why still Farmers are protesting?

By Karthik Kumar D K on 9th Feb 2021
The Rajya Sabha passed two out of the three Bills being referred to as the Farm Bills [link]. These two Bills are the Farmers Produce Trade and Commerce (Promotion and Facilitation) Bill, 2020, and the Farmers (Empowerment and Protection) Agreement on Price Assurance and Farm Services Bill, 2020. The Lok Sabha had already passed these Bills. There was some ruckus in the Rajya Sabha where the Bill

World Cancer Day, February 4th - Early detection of Cancer can lead to Improved outcomes & Cure.

By Karthik Kumar D K on 4th Feb 2021
Cancer is a large group of diseases that can start in almost any organ or tissue of the body when abnormal cells grow uncontrollably, go beyond their usual boundaries to invade adjoining parts of the body and/or spread to other organs. The latter process is called metastasizing which is a major cause of death from cancer. A neoplasm and malignant tumour are other common names for cancer.

Send Mail with Custom Email Template & with Dynamic values via Drupal Mail Service

By Karthik Kumar D K on 20th Jan 2021
Sending an email works with defining an email template (subject, text and possibly email headers) and the replacement values to use in the appropriate places in the template. Processed email templates are requested from hook_mail() from the module sending the email. Any module can modify the composed email message array using hook_mail_alter(). Finally \Drupal::service('plugin.manager.mail')->mail

API Docs Drupal Module simple way to show OAS Docs on Drupal Portal

By Karthik Kumar D K on 16th Jan 2021
If you want to show API Documents on your Drupal Portal and you want to do it do it quickly, Here's the module API Docs which solves your purpose. API Docs is a simple module which will will provide a content type for the API Doc and User will be able to create API Documents by just uploading Open API Spec. Each API Doc is a content with this API Docs module. Prereq

Saving Vegetable seeds for your backyard gardening

By Karthik Kumar D K on 14th Jan 2021
To become more food self-sufficient, we should plan to collect, store and use some of the seed for your own garden. With this we can create new & custom varieties of vegetables that grow best in our backyard. This can be done with small amount of effort involved. Also you will have fun in the process too. You can save vegetable seeds from your garden produce to plan

Indian Farms Reforms of 2020

By Karthik Kumar D K on 30th Dec 2020
The Indian Farms Reforms of 2020 refer to the agricultural bills passed by the Lok Sabha on 17th September 2020 and by the Rajya Sabha on 20th September 2020. The bills collectively seek to provide farmers with multiple marketing channels and provide a legal framework for farmers to enter into pre-arranged contracts among other things. The President of India gave hi

Rainwater Collection, Storage & Purification

By Karthik Kumar D K on 18th Dec 2020
Rainwater Harvesting is the collection & storage of rain water, rather than allowing it to run off. Rainwater is collected from a roof-like surface and redirected to a tank, cistern, deep pit (well, shaft, or borehole), aquifer, or a reservoir with percolation. We can utilize this water for many purposes like, include watering gardens, livestock, irrigation, domestic use with proper treatment, and

National Education Policy 2020, Government of India (NEP 2020)

By Karthik Kumar D K on 8th Dec 2020
National Education Policy (NEP 2020) has been approved by Union Cabinet on 29 July 2020. Its major aim is to introduce changes in the Indian Education System right from the school to the college level of education. Making India a Global Knowledge Superpower is the ultimate objective of the NEP 2020. It is the third major change in education systems in India since independence in 1947. Earlier two

Fighting in a Couple's Relationship is Normal

By Karthik Kumar D K on 4th Dec 2020
Every Couple will fight & it's completely Normal, unless its scares both of them. No two people are exactly the same way, each of them are unique. Couples can occasionally or often might have conflicts or disagreements which might lead to an argument of fight. If that particular conflict of argument is taken as a healthy discussion, then you will be knowing more about your partner and you both wil

Bangalore <=> Ooty (3 Days + 2 Nights, Trip Plan)

By Karthik Kumar D K on 2nd Dec 2020
Three days Trip from Bangalore Ooty Bangalore, If you are a Couple riding on Bike or You are a Family driving in Car, then this three days plan works very well. Below is the route mentioned where you can plan accordingly, if at all you need to spend some more time in some place in the list, you can skip the next place in the planned route. Ooty known as the Queen of the hill stations in South In

World's Fastest Anti-Ship Cruise Missile in Operation

By Karthik Kumar D K on 30th Nov 2020
BrahMos is a medium-range ramjet supersonic cruise missile that can be launched from submarine, ships, aircraft, or land. It is the fastest supersonic cruise missile in the world. It is a joint venture between the Russian Federation's NPO Mashinostroyeniya and India's Defence Research and Development Organisation (DRDO), who together have formed BrahMos Aerospace. The name BrahMos is formed from t

Growing Enough Food to Feed a Family Year-Round by Yourself

By Karthik Kumar D K on 28th Jun 2020
It's a great thought of growing enough food to feed your family year round by yourself. Certain things are really important for such a though, like how much food is needed for your family, which crops to plant, how to get the most from your plot, and how to preserve your extra harvest. How much food is needed? Let's say a 200 square f

Bangalore -> Murdeshwar -> Gokarna -> Goa -> Dandeli -> Bangalore

By Karthik Kumar D K on 23rd Jun 2020
Ten days Ride from Bangalore Murdeshwar Gokarna Goa Dandeli Bangalore, If you are a Couple riding on Bike or You are riding with a Friend in two different Bikes, then this plan for ten days works very well. Below is the route mentioned where you can plan accordingly, if at all you need to spend some more time in some place in the list, you can skip the next place in the planned route.

Why to have a Green Roof or Eco Friendly Roof on a Building

By Karthik Kumar D K on 21st Jun 2020
A roof of a building that is partially or completely covered with vegetation, that is planted over a waterproofing membrane. It may also include additional layers such as a root barrier and drainage and irrigation systems. Rooftop ponds are another form of green roofs which are used to treat greywater. Vegetation, soil, drainage layer, roof barrier and irrigation sy

Construction materials for Thermal Resistance Walls, Earth Bricks

By Karthik Kumar D K on 20th Jun 2020
Construction process can be tedious, time consuming, and expensive. To overcome this during construction, varied methods of construction is being considered and developed. Also, materials and equipment used for construction are also being fabricated to enhance the quality of construction and furthermore minimize the time and cost. Interlocking bricks are one such advancement in construction indust

Openness in a Couples Relationships can be Secret/Private

By Karthik Kumar D K on 14th Jun 2020
In a healthy romantic relationship, as time goes on trust is earned, and we eventually open up more & more. Based on each others mutual respect & valuing, couples are sometimes unclear in how much they should or want to share within each other. Each of them have right to privacy and each decide, how much to share or how much to open up. Few are too open or soon offe

Bangalore <=> Ghati Subramanya (Morning Ride Plan)

By Karthik Kumar D K on 12th Jun 2020
Ghati Subramanya is an ancient Hindu temple, 50 kms away from Bangalore towards Doddaballapur situated on the outskirts of Bangalore. Ghati Subramanya has a recorded history of more than 600 years. Ghati Subramanya Temple was first developed by the Ghorpade rulers of Sandur who ruled parts of Bellary. The uniqueness of this temple is the prime deity "Lord Karthikeya

Indian style Spanish omelette, Egg + Potato + Onion

By Karthik Kumar D K on 7th Jun 2020
Egg with Potato plus Onion will make a delicious and healthy breakfast, You have have it as a Breakfast or you can have it as a Snack in the day, will also be a great starter in the barbecue. This combination of dish is called Spanish omelette, but lets make it in Indian Style. Ingredients Needed? 3 Eggs, 4 medium sized Potato (choppe

Checklist for making a Eco-Friendly Home

By Karthik Kumar D K on 7th Jun 2020
To build a home, which makes low-impact environmentally. And built using materials & technology that lowers its energy needs in future. And also make sure built home is reliable for few decades with minimal energy spent on it. To do this, you have to consider Energy? what Sustainable materials to be used? how it impacts on our health? And what is costs Before gettin

UnConditional Love in a Couple's Relationship

By Karthik Kumar D K on 6th Jun 2020
It is commonly said that Women are complex in mental nature while Men remain easy to understand and simple. Whatever be the reasons that backup this comment, in relationships both Men and Women follow slightly diverted paths. What Men look for in a relationship is not what motivates Women to fall in relationships. The differences in desires, mentalities, passion, expression levels etc., are result

Bangalore <=> Mysore (2 Days + 1 Night, Ride Plan)

By Karthik Kumar D K on 4th Jun 2020
Two days Ride from Bangalore Mysore Bangalore, If you are a Couple riding on Bike or You are riding with a Friend in two different Bikes, then this plan for two days works very well. Below is the route mentioned where you can plan accordingly, if at all you need to spend some more time in some place in the list, you can skip the next place in the planned route. Ro

Egg Stuffed Paratha Recipe - Home made

By Karthik Kumar D K on 4th Jun 2020
Egg Stuffed Paratha is a delicious and healthy Paratha dish, filled with egg mixture. Both the eggs and whole wheat are healthy as it provides the right amount of proteins and carbs. The egg mixture has finely chopped onions, green chili and coriander leaves. This is then slided into the half cooked paratha pockets and cooked further. The Egg Stuffed Parathas are quite filling in itself.Ingredient

Courtship time - Make it memorable, ways to add some spice

By Karthik Kumar D K on 4th Jun 2020
Finally you found a guy/girl with whom you can't wait to start most excitement time of your life.. But you see lot of time for wedding and So you got lot of time to know each other even more better.. The Best you can do is make this time memorable ;)1. Wedding planning, will be best time pass for each of you.Hmm, Obviously meeting in person in this courtship period would happen with this wedding p

Scientists Have Created Hexagonal Salt, For First Time Ever

By Karthik Kumar D K on 1st Jun 2020
While it probably won't make it to your dining table, a new scientific achievement might be able to help in everything from radar equipment to electric cars: scientists have been able to form salt, aka sodium chloride (NaCl), in a hexagonal shapeThis is work done at the smallest of scales, with researchers able to get a thin film of hexagonal salt to form on top of a layer of diamond, due to the c

'PigeonBot' is the first robot that can bend its wings like a real bird

By Karthik Kumar D K on 31st May 2020
Pigeons may be considered rats of the sky, but some scientists have found greater value in these urban birds: the blueprint for a new generation of flying machines.Birds can modify the shape of their wings by fanning out their feathers or shuffling them closer together. Those adjustments allow birds to cut through the sky more nimbly than rigid drones. Now, using new insights into exactly how pige

Drupal JSON:API GET, POST, PATCH and DELETE Samples

By Karthik Kumar D K on 11th Nov 2019
The API that the JSON:API module makes available is centered on Drupal's entity types and bundles. Every bundle receives its own, unique URL path, which all follow a shared pattern HTTP Methods JSON:API specifies what HTTP Methods to accept. Those are: GET, POST, PATCH, and DELETE. Notably, PUT is not included.

Cache Set, Get and Invalidate per User in Drupal 7

By Karthik Kumar D K on 26th Jun 2019
How to Set, Get and Invalidate the caches per user in Drupal 7, this blog article will explain a brief of how to do such implementation on Drupal using the default drupal cache functions. Here, we go with the steps Initially, create the custom functions for Get, Set and Invalidate the caches per us

Store Drupal logs on Amazon S3

By Karthik Kumar D K on 24th Jun 2019
Store Drupal logs on Amazon S3 via hook_watchdog, so that you can get rid of heavy logs on your drupal database and can later read from the S3. For this todo on Drupal You should use the "hook_watchdog" hook, where this hook allows modules to route log events to custom destinations.

AES Encrypt & Decrypt

By Karthik Kumar D K on 11th Jun 2019
Advanced Encryption Standard, where we use "AES-256" to encrypt the data with Cipher. Encrypt & Decrypt approach taken is "Cipher Block Chaining" method "AES-256-CBC". AES Encrypt We would have the "Secret" stored in a file which is other than the web root.

Sites Still Vulnerable to Drupalgeddon 2

By Karthik Kumar D K on 27th Jun 2018
Attackers are exploiting Drupalgeddon 2 critical vulnerability in Drupal to compromise systems & secretly turn them into malicious cryptocurrency mining machines like cryptojacking malware, mine for Monero. The only side effects a victim might notice is that their system is running slower or doing more work than usual. Still most of t

Secure Website running on Apache with Let's Encrypt on Linux

By Karthik Kumar D K on 1st Feb 2018
Website security is generally most complicated and expensive task for every Linux admin. Let's Encrypt is a free, automated, and open certificate authority that provides free X.509 certificates for Transport Layer Security encryption via an automated process. It's very complex process to install and add SSL certificate to a web server. Let's make it easier with the

Aegir on Docker - Develop, Test, With Easier Deployment

By Karthik Kumar D K on 3rd Sep 2017
Aegir with Docker would be one of the brilliant option for Better Drupal Development and Faster Deployments. Docker, which solves the overhead of virtualization layer. And Aegir, which gives the best possible approach for Drupal Multisite hosting. Here you go??? Better Task Queue..! This process is usua

Integrating Codeception with Drupal to have added support for TDD

By Karthik Kumar D K on 26th Mar 2017
Getting Codeception into Drupal, will have added support for Test Driven Development.. Specifically in having the Acceptance Tests in the project.. Since Test Driven Development would be one the most integral part of the project.. And also internal team and vendor team would be having more confidence in the version releases of their project.. one can prefer TDD. Tes

Creating a Twitter Share block programmatically in Drupal 8

By Karthik Kumar D K on 14th Mar 2017
How to Create a Twitter Share block programmatically in Drupal 8. Which includes few minor stuff like Accessing the Current Node data in Block. How do we create the link programmatically. Disable cache for particular block.

Auto Tagging of Taxonomy terms in Drupal7

By Karthik Kumar D K on 27th Sep 2015
This article help you to create the way to implement the autotagging of the taxonomy terms based on the other field of the node page. This can be implemented by using the hook_node_presave(). In our case lets consider the field_tags is the taxonomy field, and we are autotagging based on the content present in title and body fields. Al

Configuring & Debugging Drupal 7 on PHPStorm with XDebug on Ubuntu14

By Karthik Kumar D K on 26th Aug 2015
Debugging the code is one of the important process for a developer, So now this article will help you to configure the Phpstorm for debugging the Drupal 7 application with the help of xDebug. The configuration made in this article refers specifically to the Ubuntu machine, which has Apache2 webserver running and xDebug installed. Initally open terminal, and check th

Custom Batch processing in Drupal 7 to update Nodes - Batch API

By Karthik Kumar D K on 17th Aug 2015
Drupal's batch API processing is very nice and provides few benifits, We can break long tasks into smaller batches, and by this we will be able to prevent maximum execution time errors. This article will show how to Build a batch routine in a custom module, its more straight forward approach, you can follow up below code, which is been explained with required comments. Create your custom module, w

Drupal7 Simple Test case in Custom Module

By Karthik Kumar D K on 12th Jul 2015
Why to write test case? Very simple, in one word, Its waste of time and effort of checking something we changed in code and that effects other part, and to make sure every time what change we make that should not effect any other code, so this task can be done by our test cases In this article, giving a simple test example to create a drupal test case

Filter content between Date ranges in Drupal 7

By Karthik Kumar D K on 11th Jul 2015
It is tempting to believe that using the "is between" on a date fields will work. However, this option is used only in the case of events "Starting" on a range of date. This tutorial requires that you already have a content type with a date field . It is not necessary to have two fields to adjust an "end date" for the event, only a date field with the "Collect an en

Create Related Content of Different Content Types through Taxonomy in Drupal7

By Karthik Kumar D K on 11th Jul 2015
Step 1 Create a Taxonomy term field for the content type, In this article lets take example for Basic Page content type as shown in the below image. with the Autocomplete selected as settings of the term reference field. Step 2 And next create/resue the Taxonomy term field for the other content type, In this article lets take example

Drupal Multisite development environment Configuration in Ubuntu14

By Karthik Kumar D K on 8th Jul 2015
Prerequisite Requires a working drupal installation Set up your hosts file Add the following lines to /etc/hosts: 127.0.0.1 testsite.localhost 127.0.0.1 testsite2.localhost Set up Virtual Hosts Add the following code to /etc/apache2/sites-available: Goto to the fold
Showing articles of author Karthik Kumar D K. Show all articles
Scroll to Top
We Need Your Consent
By clicking “I Accept Cookies”, you agree to the storing of cookies on your device to enhance site navigation & analyze site usage.
I Accept Cookies