An entity is a useful abstraction to make grouping together of fields. Here I am giving you a brief view about how the custom entities created, adding extra fields, adding bundles etc all things attached to entity.
It was not easy to change calling order of hook implementations in Drupal prior to version 7. From Drupal 7 onwards you can control the order of hooks called for different modules. To accomplish it, there is a new hook introduced in Drupal 7. It is hook_module_implements_alter().
This article discuss about setting snippets for Geany, a light weight IDE especially for Drupal 7 web developers as per coding standards. For those whom doesn't know, snippets are a small piece of source code which are meant for reuse.
In Drupal there is a lot of interesting modules. One of interesting module is the quiz.module. It is a framework for create interactive quizzes for your visitors. Also it allows for the creation of questions of different types, and to collect the questions into quizzes.
Today, people are looking for free and easy to use content management systems to run their website. Drupal is an open source content management system (CMS) which help users create, structure, and publish content. From a company perspective the priority will be on saving costs and shifting attention back to customers. Here is a useful checklist for developers, to meet the above needs for building a small business website without compromising the quality.
CiviCRM is an open source tool which provides a web-based interface for Constituent Relationship Management. The main advantage is that it could be coupled with the Drupal environment (or any other CMS) and used as a Relationship management tool. Using the functionalities we can handle the relationships with the people, households, organizations etc. It also help us to create events, make personalised campaigns, make contributions etc.
In Drupal 7 by default we can't send html mail, since Drupal will convert all emails to plain text before sending. This could be overridden using Drupal 7 htmlmail contributed module. We may also need i>mailsystem module for implementing htmlmail, which is a dependency. The module also give html mail template, which could be customized as well in same way of theme templates.
Webform module is a perfect solution, if you are looking for a more complex contact form or multiple feedback forms to add to your Drupal 7 website. This module will enable you to create and manage as many forms as you need. Recently, we had a need to create three different feedback forms for a Drupal website. One of the webforms was a contact form to connect with different contact persons of the company where as, another one was to send enquiries about the products and there was a guest book page to leave feedback. Here is how we achieved all these requirements in one shot using the webform module.
We had faced an issue with invoice sent by authorize.net, for anonymous purchase a product in ubercart in one of our Drupal 7 site. After the purchase is completed, the user receives an invoice from authorize.net. But if the user is anonymous, the invoice's customer id is set as zero. We had sorted out the issue and fixed it. Read on to know how to solve this problem
Drupal 7 has a contributed module "Nodequeue" which allows users to collect nodes in an arbitrarily ordered list. It provides a simple drag-and-drop interface to manually order any queue. If you want to create a node to the nodequeue programmatically then you need to read this article. For creating you need to have two things: node id $nid and the queue name queue_name. Here how it can done, we firstly load the nodequeue by name and then add the node to the queue using function nodequeue_subqueue_add. Below code snippets adds a node to the queue.
Drupal 7 provides a flexible supports to create a Taxonomy. There is powerful core module called Taxonomy which allows us to create, manage and apply vocabularies. In Drupal, the terms are gathered within "vocabularies". Taxonomy has a ability to add taxonomy fields to vocabularies and terms. When we come across inserting the taxonomy terms programmatically, we will need to add fields values to that taxonomy term. So In this section we are going to create a custom field values to the taxonomy terms. Below is the code snippet, that is the array structure to create field values.
Drupal provides creating an image style in different ways through configuration. Adding a watermark to the image to provide its originality is a must thing needed by the clients. While running in to this we have found out a solution to add a watermark to the image styles.
To change the group manager of a group usually we search into option as "change group manager" but we dont find it anywhere. Because there is no option within Organic Groups holding such a decription. So we need to think futher and deeper into the concepts of organic groups. This articles tells you simple method to change the group manager of the group.
The article explain how to make mp3 files directly streaming on your website without users having to download the file. To do so I am using contributed module from Drupal that is Soundmanager2 module. It provides the Drupal interaction with the soundmanager2 libraries containing three default player style. Here I am just creating a content type for uploading the mp3 files. By creating a node to this content type we can upload the files and displaying mp3 player will be done by soundmanager2 libraries. For integrating MP3 file in your Drupal 7 , you need download modules and the libraries.
This article describes a checklist on some of the important data to be collected before migration and how to collect the data. This may seem like a trivial task but just like it is important to have a manual for an electronic device before you take it apart and put it back, it is important to have a technical manual of the site. If it is a complex site, with a lot of data, then this is mandatory.
One of our Drupal clients was using banner ads for their affiliates to bring in more members. Unfortunately these banner ads were placed inside the content with a page (A Drupal node) and the embed code for the banner ads generated using PHP code by enabling the PHP filter. If you have spent time in the Drupal world you would be knowing that enabling the PHP filter within the content area is a big security vulnerability. So the alternative was to use tokens. Read on to know how to replace a token within the content area of a node in Drupal.
When we try to theme a Drupal website certain case we need to create particular region in the Drupal website. Adding region for a Drupal website is not a hard task, even a developer first creating a Drupal website can create a region. In order to add regions inside a Drupal website we only need to add a few lines extra for that. Below there are three version of drupal for the drupal 6 and 7 version creating the region is same but for the Drupal 5 version it is slightly different.
In Drupal, if you have a content type and you want to change the output of any field to something else you can use field formatter with field API. This enables a display settings for any fields in a content type and where you can manage the output as you wish. This article shares how to create a field formatter for your Drupal content types. There are some contributed modules for custom field formatters. But if you really want to create or learn about creating a field formatter programmatically, just go through this article