Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
switch ($hook) { case 'node': $vars['lesson_number'] = ''; foreach($vars['node']->taxonomy as $key => $keycontent) { if ($keycontent->vid != 1) { unset($vars['taxonomy']['taxonomy_term_'. $key]); } elseif ($keycontent->vid == 3) { $vars['lesson_number'] = $key } } $vars['terms'] = theme('links', $vars['taxonomy'], array('class' => 'links inline')); break; }
This paste will be private.
From the Design Piracy series on my blog: