Blogs

Display Full Name in Node Submitted By

I was looking into displaying a node's author full name, not just the username. There are a couple of modules that do this in Drupal 7 but, as of this writing, they are a little premature.

Here is how I accomplished it through theming:

Create a required first and last name field on the user form (admin/config/people/accounts/fields)

Modified the theme_username function:


function YOUR_THEME_NAME_username($variables) {
$thisuser = user_load($vars['uid']);

Disable Entity Tags (ETag) in Drupal with .htaccess

Entity Tags (ETags) are a mechanism that web servers and browsers use to determine whether the component in the browser's cache matches the one on the origin server. If you're not taking advantage of the flexible validation model that ETags provide, it's better to just remove the ETag altogether.

Overriding the Submit Button in Commerce

The default submit button text in the Commerce module is 'Add to cart'. For the site I am creating the client wanted the button to say 'Select'. I first at the String Overrides module but realized that with the ability, in Drupal 7, to use HOOK_form_alter() in a theme I would be able to accomplish this task with a few lines of code.

It's just this simple:

Drupal 7 jQuery Mobile UI Released

After many requests to port my Drupal 6 module, jQueryMobile UI, I am proud to announce the release of my Drupal 7 module on Drupal.org. The module is a helper for the Mobile jQuery theme. This module allows you to extend some core functionality of the theme. It can also be used to assist you in creating your own theme to harness the power of jQuery Mobile. To install the module, go to

Subscribe to RSS - blogs