Drupal 7: How to add a custom CSS class to the last search result item on the search page
This is a small tidbit of information in the event that you wanted to alter the Drupal search results page. You can add a custom CSS class to the last search result item (for whatever reason you may have). In my case, I wanted to remove the border-bottom from the last result, so I had to add a special CSS class to do this.
Just follow these simple steps:
- Override template_preprocess_search_results
Here is how to alter the code. This goes in your template.php:
function yourthemename_preprocess_search_results(&$variables) {
$variables['search_results'] = '';
if (!empty($variables['module'])) {
Drupal 7: How to add a custom node view and force a node template to use it
This is a small Drupal 7 tip if you wanted to create a custom node view and force a node template to use this custom node view.
Use case
Let's say you are creating a custom node template for a node of type "grades". You may need to show/hide specific fields in your content type for your Grades template. (This is just an example but you can use this tip in various ways).
The Steps
-
You can create a new view mode by putting this code into your custom module:
-
/**
* Implements hook_entity_info_alter().
*/
function MYMODULE_entity_info_alter(&$entity_info) {
$entity_info['node']['view modes']['custom_teaser'] = array(
'label' => t('Your Custom Teaser'),
'custom settings' => TRUE,
);
}
Timelapse Video of Trinidad
I found this video online with various scenes in Trinidad. Much locals become insensitive to the beautiful landscape that exists in Trinidad and Tobago. Not me.
Credits: Kevin Huggins
What would you do for pudding?
Well here goes: I was told that if I put this on my website, I would get free pudding.
I just could not turn down this offer. Anxiously waiting...

ps If you found this place from this website, you can do me a great favour by just mentioning this to the cashier. Thanks!
ROTFLMAO!!
I am sorry, this is going to be a short post, but this picture paints a thousand laughs and then some! :)

And you if you didn't catch the joke, watch this video:
"If I could have spit on you, I would have spat on you, but I will not, ofcourse, dignify my spit."
Boom!
The Loser Life - Thanks Sony

Everyday after work I come home, wash some wares, make something to eat, pace up my balcony (and back) - all in a vain to fill the gaping boredom hole and now entertain life without my PS3. Sometimes, I reach for the little black controller neatly placed on the left side of my couch, hit the PS button and just hope that the PS3 network is back up (even though I know it's not). Sad.
Sunrise in the West

The room spins, the light shines
Drums resonate, my brain flat lines.
Beat beat, my heart's at peace
Any slower and I'll be deceased
Relaxation alike, like no other,
I don't care, I dont bother.
Time goes by, but I've stayed in.
Now here comes this retarded grin
Something mystical, blowing in the air
Holding a conscieneness, holding a stare
Sometimes I open my eyes but I just cant see
Only because people surround with their negativity
I tip my hat to all that'll agree
That you can live your life and live and let be
Strip away the ego and reveal yourself
Mayaro Beach

Mayaro Beach still remains one of my favourite spots in Trinidad and Tobago. Looking along the shorelines in any direction, you will see miles of sea meeting sand. Whether you are there for high tide or low tide, Mayaro never disappoints in giving you the most picturesque memory to cherish.
The Unknown: The Universe
I look to the Universe...it's one of the most un-discovered places by man.
We know little about it, can't see much of it, don't know how big it is or if we are alone.
When scientist try to explain the vastness of the Universe, they typically use Earth-like examples so that the human mind can appreciate its magnitude.
Peep this...
Trinidad Guardian's Main Stage launched using Drupal!
A few days ago, the Trinidad Guardian's Main Stage was launched.
Without a doubt, the website runs on the very powerful cutting edge content management system, Drupal 6.
The design was done in-house at The Guardian (provided as a template) and some features used are the jQuery powered photo galleries.
A gallery is considered a "node" which can contain multiple images, all of which are seamlessly uploaded through the web interface of the same website.
