Add Instagram Link and Icon in Multipurpose

Multipurpose theme comes with a handy Social Media icon panel. By default, admin can go into the theme settings and fill out the urls for the default social media links: Facebook, Twitter, Google Plus and Pintrest.

To add a new icon to the panel, such as Instagram:

settings[instagram_url] = ""


$form['multipurpose_settings']['socialicon']['instagram_url'] = array(
    '#type' => 'textfield',
    '#title' => t('Instagram Address'),
    '#default_value' => theme_get_setting('instagram_url', 'multipurpose'),
    '#description' => t("Enter your Instagram URL. Leave blank to hide."),


theme_get_setting('socialicon_display', 'multipurpose')
$instagram_url= check_plain(theme_get_setting('instagram_url', 'multipurpose'));
Under header-social div
<?php if ($instagram_url): ?><li>
<a target="_blank" title="<?php print $site_name; ?> in Instagram" href="<?php print $instagram_url; ?>"><img alt="Instagram" src="<?php print base_path() . drupal_get_path('theme', 'multipurpose') . '/images/social/instagram.png'; ?>"> </a>
</li><?php endif; ?>
Don't forget to clear caches after saving all the files.

Reorganized Modules structure

Because there's no better way to mess with this site than to drastically reorganize where the modules are located! sites/all/modules/contrib and sites/all/modules/custom instead of the old messy way, right? Yeah we all survived...


@font-your-face provides an administrative interface for browsing and applying web fonts (using CSS @font-face, supported in all popular browsers) from a variety of sources.

Experimenting with fonts on this site right now. Enjoy. :-)


Vagrant file permissions

In Vagrant, you have the option to mount a shared folder with two options

This would mount /vagrant/www where permissions can be changed outside of Vagrant, but not inside the VM.

config.vm.synced_folder "./www", "/vagrant/www",
  owner: "vagrant",
  group: "www-data",
  :mount_options => ["dmode=775", "fmode=664"]


This would let user change file and directory permissions within the VM.
config.vm.synced_folder "./www", "/vagrant/www",
  :nfs => true