Drupal: Remove double angle quotes from breadcrumbs

Built into Drupal core, in /includes/theme.inc the function theme_breadcrumb, automatically inserts &raquo; or » into your breadcrumbs. The function looks like this: function theme_breadcrumb($variables) { $breadcrumb = $variables['breadcrumb']; if (!empty($breadcrumb)) { // Provide a navigational heading to give context for breadcrumb links to // screen-reader users. Make the heading invisible with .element-invisible. $output = '<h2 class="element-invisible">' . t('You are here') . '</h2>'; $output .= '<div class="breadcrumb">' . implode('...


Drupal Sandbox Project: CAS Username Link

I've just finished working on a new Drupal Sandbox Project: CAS Username Link This project came about while working on a Single Sign On (SSO) solution. The product I was checking out was CAS. Low and behold, CAS has a Drupal module, aptly named: CAS. After fiddling around with module and having it not working for a while, I finally realized that each existing Drupal account needed to have a CAS username linked to it. This could be done manually on the user configuration screen, or by running a bulk update on the database to populate the cas_user table. This wasn't going to work for me since...


Is there a good way to create redirects when launching a new site?

I am quickly finding that there is no good way to do this, but this is what I've done. I started with the Google Analytics from my old site and sorted the content by page views.  This gives me my most important information or at least the content that might get the most 404s.  After doing the top 100 (some which I caught through wild cards like this) RedirectMatch permanent (?i)^/example/content(.*)    http://cvanderlinden.com/example/content The biggest thing I have learned is that it doesn't need to be the exact right place, and all I'm trying to do is avoid 404s. Next after that I...


Drupal: Making Media: YouTube more user friendly

I have a client that needs their editors to be able to quickly embed YouTube videos into posts.  Usually one can just do this by copying and pasting embed codes into the source. However in this case, the client required that the user not touch the source code.  Enter Media: YouTube, in conjunction with the Media module this allows the user to paste a YouTube link into the plugin and have the embed code be generated for the user.  Perfect! However, I find that it's usability is a little off and needed to be retouched for my purposes.  My two problems: The icon needs to be changed to a...


Drupal 7: WYSIWYG YouTube Embed Tutorial (Media_YouTube)

Why would you need a YouTube plugin for Drupal? Can't you just use the embed code? Yes, yes you can. However, you may run into a client where copying and pasting the embed code becomes too technical.  So lets forget about why we need this and I'll explain how to get it set up. Foreword After switching over to Drupal 7, I decided to use the WYSIWYG module to implement text editors instead of custom built modules for text editors.  This now allows us to keep up to date with the latest release of editors like CKEditor, TinyMCE, etc.  Since you just drop them into the libraries folder and they...


Github Release: CiviCRM-PPI-PayMover-Payment-Plugin

For work, I had to develop a payment processor plugin for CiviCRM to integrate PPI PayMover into the eCommerce / CRM / Drupal system. I'm not sure the need for this, because when I first built this, I couldn't find a single thing on the Internet related to this project.  That is why I am releasing my code on github. CiviCRM-PPI-PayMover-Payment-Plugin on Github The project takes a little it of setting up.  You need the PHP SDK from PPI, those aren't my files to share but you can get them if you have an account with PayMover. Then you need to insert the payment process into the database,...