Variable Check module fixes error

One of the websites I manage started to get the following notice even though I have the logging errors off:

Notice: unserialize() [function.unserialize]: Error at offset X of X bytes in variable_initialize() (line 749 of /<sitepath>/includes/

After checking out the line in bootstrap, I realized I had some bad variable in the variable table. But I have over 800 variables in that table. How am I going to find the culprit?

Variable check module to the resue -

Ajax Autocomplete Textfield for Nodes

function module_name_form() {
  $form = array();
  $form['nid'] = array(
    '#title' => t('Nodes'),
    '#type' => 'textfield',
    '#autocomplete_path' => 'example/autocomplete',
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => 'Save',
  return $form;
function module_name_menu() {  
  $items['example/autocomplete'] = array(
    'page callback' => '_module_name_autocomplete',
    'access arguments' => array('access example autocomplete'),
    'type' => MENU_CALLBACK
  return $items;

Display the Label (value) of a selected list value

Sometimes you may have a need to get the value of a selected list value instead of the key.

For example, if you have a select field called "field_priority" and your key|value pair looks like this:


To display the value of the field you would do something like this:

Let's all COPE

With my daily FB news updates I came across this article titled "CMSs are dead, long live CMSs".

Permissions Per Webform Module

Permissions Per Webform Module
is a very useful module. If you use webforms a lot you know that if you give a role access to view all submissions that it means they view submissions to all webforms. This module solves that problem by putting extra access level at each webform.

I only wish there was a version for Drupal 6.

Setting up custom styles in CKEditor with Drupal

In order to set up custom styles in the drop-down list to the CKEditor toolbar is not that difficult but the instructions here is not very well defines when you are integrating with Drupal.

Simply copy the sites/all/modules/ckeditor/ckeditor.styles.js file into your theme directory. 

Apache Solr Multi-core Setup on Tomcat

Setting up one Solr server with two or more Drupal sites takes some additional configuration. If this is not done, all of the data for each site goes into the same index and when searching on one site, results are returned from both sites. If that's not the desired result (faceting won't currently work correctly), then it is necessary to set up a separate Solr core for each site. Each core is a totally independent search index.

Understanding The Difference Between Apps and Mobile Websites

Here's a good article to help understand the difference between apps and mobile websites.

Drupalcon Denver

New modules to look at:

Contextual Administration

Flex Slider

The Examples modules

If you are new to developing for Drupal 7 or upgrading from another version, the examples modules is a GREAT module for examples on how to develop for Drupal using the API. It gives you the basic of a lot of the common things you do when developing. Some examples included are theming (hook_theme), running cron job (hook_cron), forms (hook_form, hook_element_info), menu, node and so much more!!