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).
drupal 7.x
This tutorial describes how to patch a module on your live Drupal site with the code changes you have made on your Drupal development site. If you already have a patch file that needs to be applied to a module, read this article instead: Apply a Patch to a Drupal Module
Otherwise, let us venture forth in quest of more libations!
This describes how to add a custom setting to the JavaScript Drupal.settings variable using PHP
In Drupal 7, an image field comes with alt and title fields for your content type's image(s). The Image Field Caption module adds an extra text area to enter caption text or html for image field descriptions.
In Drupal 7, on a content type edit screen, I needed to set the available menus for that content type. Some sites only have a few menus, other sites (particulary ones with lots of Organic Group menus) will have tons of menus to choose from. Clicking each checbox, when there are hundreds of them, over and over again through multiple content types is annoying. "Let's use computers to make our lives easier", said man.
You must disable Drupal 7 administrative pages in the overlay for this to work. You can toggle this on/off on your user edit form.
I have an Organic Group, and a separate content type that references this Group Audience when creating nodes. I needed to set up Pathauto to automatically create a path like this:
my-group-node-title/my-content-title
This is the Pathauto token set up that worked for my content type:
If you have an image style specified in Drupal 7 and you'd like to programmatically render an image thumb nail with that image style, try something like this:
$image = theme(
'image_style',
array(
'path' => 'public://my_example_image.jpg',
'style_name' => 'my_custom_image_style',
'alt' => 'Alternate Text',
'title' => 'Title Text',
)
);
print $image;
This would work if you had an image style specified at admin/config/media/image-styles that was called 'my_custom_image_style'.
Do you need to hide the 'Use the overlay for administrative pages' checkbox in the 'Administrative overlay' fieldset on the user edit form? Then look no further my child, this can be accomplished with hook_form_alter and an #after_build in your custom module.
While building a Drupal 7 Commerce site, I needed a price range navigation block so customers could search for products within a specific set of price ranges.
Here's an example website (buy some sexy clothes for your girlfriend/wife/self while you're there) showing off this feature.
Here's an example screen shot:
In this tutorial we will explore how to build a mobile application for Android (iOS, iPhone, iPad) using PhoneGap and jQueryMobile that can be used to geo locate node content from a Drupal website. The mobile application will lookup the user's current location, then ask Drupal for a list of content closest to that user's location.
Tutorial Components
Sometimes you want to show the output of an RSS feed somewhere in your Drupal site. Well with this handy dandy function, we can do just that:
Pages