Category: Drupal

Drupal taxonomy_get_term_by_name() and Encoded Characters

Drupal’s API method taxonomy_get_term_by_name() chokes and fails to return the taxonomy term when the term name has encoded characters. The trouble is that term names are usually encoded by the time you pull them from the $variables array in a hook. This means that a taxonomy term with an ampersand would not get looked up […]

Clearing Out Drupal Features Checkboxes

Drupal has a Features module which allows for certain configuration settings (Views/Context/Content Types) to be exported to code. This way you can separate out configuration from content, and avoid having to sync databases up/down environments. Except that sometimes (in my experience) you hit a wall with a created feature. I’m not sure where that limit […]