Adding custom CiviCRM search tasks

I needed to be able to add a new activity record to every contact in my search results.

Here's how I used a CiviCRM hook to add a function to the list of tasks you can perform on a set of search results.

Drupal modules I found useful creating easygreenprint.com

screenshot of homepage of easygreenprint.com

I was really glad to be working to create Easy Green Print with a friendly local company who are the leading light in environmental printing. It ticked a lot of boxes for me:

How I use Git for my Drupal sites

I have a server with several Drupal websites on it. I want a separate codebase for each so that I can tweak, play on one without affecting the others. I like using Git. This page documents (for my reference as much as for your delight!) my workflow.

Advantages:

Drupal 7 page loading process explained

In looking for an answer to this question, most posts say something like: Drupal is almost entirely modular, and driven by lots of "hooks" and what code is actually executed when is deep Drupal Voodo. Or they say RTFM. I think the F stands for Fantastic, but it could also be Fragmented. This is my attempt to understand what hooks get called when in the delivery of a simple page (like this one).

Tags: 

Hash it up! A tool to find twitter hashtags

  • Want to make something big on twitter?
  • Want to know what hashtags are being used?

This simple tool by Artful Robot helps you find them. Just enter some search terms and click Find #hashtags.

Tags: 

CiviCRM: How to get table info on a custom group (fieldset)

When you create a custom fieldset in CiviCRM, a new table is created, but the table name and field names are not altogether obvious. Here's a function that finds them out. All you need to know is the name you gave the fieldset (and the names you gave the fields).

So you might have created a field set to keep a record of contacts' favourite music called "songs". You may have given fields "Artist", "Title"...

Tags: 

How I wrote a CiviCRM Custom Report

Screenshot

CiviCRM is a full featured database right out of the box, and has lots of ways to extend it. For example, you can create extra set of fields for certain types of contacts, and these can even have a one-to-many relationship. Here's how I ran a report on from this extended dataset.

Tags: 

Drupal 7: Thinking Outside the Block

Drupal 7 has an amazingly granular templating system that means each bit of the hierarchically structured page data can have its own template. After spending a long time understanding this I set to work on my first task.

I wanted a pull-out quote on some pages that integrates with the main layout - I don't just want it stuck in the main page content area block. This means that when it's used, I want it to interrupt the sidebar's content, to demand the attention that I have decided it deserves.

Tags: 
Subscribe to