• Development

    Variable Types for Use in hook_rules_event_info()

    There is plenty of documentation out there explaining how to create custom rules events. What I had a tough time finding was a list of the variable types that are available for elements reacting on this event. I had seen examples of “text” and “user” but I really wanted to know what all of the types are.

  • Development

    Drupal Quick Tip: Easier “Archive” Filtering

    I was working on a project today where we needed to show an archive of announcement nodes. The sidebar had to show a listing of months like this:


    This is easy to accomplish by using the default Archive view that ships with Views, or by creating your own view that uses the same contextual filters, block and page. The contextual filter most typically used is Content: Created year + month. Here’s what the settings look like for this contextual filter: