Detailed notation on buildamodule modules

1 reply [Last post]
Last seen: 9 years 41 weeks ago
Joined: 2012-06-14


If you're like me, you need to make notes of EVERYTHING in a program when you're getting used to a new syntax. I'm currently writing heavy amounts of notation in the buildamodule trails.module file. For example (the JE indicates that I added the note, I tend to write CS for Chris' notation):

// JE: Add the page the user is currently at to the trail.
// if array doesn't exist yet, [] = add this array to it.
// if array DOES exist, [] = don't wrap this array in a multidimensional array (as you might if you put
// a key in the square brackets
$trail[] = array(

// JE: the title
'title' => strip_tags(drupal_get_title()),
// get the path of the current page using good-old $_GET
'path' => $_GET['q'],
// drupal's succinct way of calling the time function
'timestamp' => REQUEST_TIME,

when i'm finished notating, if anyone else thinks it might help their learning, would you like me to ask chris if i can post up what i've done?

Chris Shattuck
Last seen: 9 weeks 5 days ago
Joined: 2009-08-16
Cool idea! I'll be interested

Cool idea! I'll be interested to hear if there's general interest in this.

Add to playlist

Add to , or

Add to new playlist:

Add to playlist
This is a member-only feature
But, it's easy to become a member

Add to cart:

Contact us

Below are the supported keyboard shortcuts for our video player.

Start / stop video
Go to next video
Go to previous video
Increase or decrease player speed by 20%
Skip ahead or go back by 15 seconds
Jump to a percentage (2 is 20%, for example)
Toggle full screen
Videos Pricing More Search
BuildAModule Logo Icon BuildAModule Logo Icon
Become a member!
1 month
6 months
10% off
12 months
20% off
All memberships come with the following:
24 / 7 access to the entire 1800+ video library
An innovative video player with a rolling transcript
Extensive Drupal and cross-platform training
A thorough and thoughtful training style
Progress tracking
Take notes on specific video sections
Intuitive multi-user management
How many users?
Go solo with a single user, or give multiple team members access through one account and get discounts by bundling multiple users into a single membership.