Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /home1/tylerfra/public_html/includes/common.inc).

planet drupal

Drupal - Get a View's Export Code Programmatically from CTools

With Drupal and Views, we are able to configure a View's settings and import/export them across Drupal sites. This allows us to create backup copies of our View's settings and/or move a View between Drupal sites with relative ease.

Typically this is a manual process by using the Views UI to copy the "export" code string from one site:

http://dev.example.com/admin/structure/views/view/frontpage/export

..and then paste the string into the "import" form on another site:

Drupal - "Hooking" into the Deletion of a View

Today I stumbled upon the need to do something I've never done before in Drupal. I needed a hook to run some custom code when a View was deleted. First, I checked out the list of Views Hooks and didn't find any hooks that appeared to be able to get the job done.

After a bit of Googling and chatting in #drupal-support on IRC, I was directed to this old closed issue. From my understanding, the delete hook doesn't exist and it  sounds like it won't be existing anytime soon. What can we do? Well never fear, Drupal is here.

Drupal - Address Field Phone, How to Make it Required

I've been using the Address Field Phone module with the Commerce and Address Field modules to collect a phone number from users during the checkout process.

Drupal - Build a Mobile App Game to Learn Words from Another Language

In this tutorial we'll explore how to make a simple mobile application game with DrupalGap for a Drupal 7 website. Our game will help us learn words in another langauge.

We'll use Drupal to manage our words and their translations. Since Drupal comes with a default content type called Article, we'll use that for our words.

Drupal - Send a Notification E-mail when a Comment is Posted

To receive an e-mail notification when a new comment is posted, try this (you won't even need to write one line of code):

Drupal - Create a Menu Tab with Views for a Node Content Type

This article describes how to place a custom local task menu tab alongside the 'View' and 'Edit' tabs on a content type.

Drupal - Create a Custom Hook for Other Modules to Use

In this example, we'll explore how to make a custom hook with our module so that other modules may use it.

Drupal - Views RSS Feed Title Customization with Preprocess

Creating an RSS feed with Views in Drupal is easy as pie. You can add contextual arguments to your View to provide many different types of feeds. You can even set up custom titles based on the contextual filter arguments all without writing a line of code! Amazing.

Drupal - Webform Theme submission_url Token

After spending some time trying to figure out how to theme and/or preprocess the %submission_url provided by Webform during an e-mail notification, it appears it is not possible until the 4.x version of the module is out where Webform 'tokens' will become actual Drupal tokens (http://drupal.org/node/1001798).

Drupal - Theme "Previous", "Next", "Pause" and "Resume" Controls on a Views Slideshow

Here is how to use preprocess functions to theme the "Previous", "Next", "Pause" and "Resume" button controls text on a Views Slideshow. In this example, I wanted to change each of the buttons to text that mimics somethind you'd find on a media player.

Pages

Subscribe to RSS - planet drupal