/**
  * custom_columns function
  *
  * Adds content for custom columns
  *
  * @return void
  **/
 function custom_columns($column, $post_id)
 {
     global $ai1ec_events_helper;
     switch ($column) {
         case 'ai1ec_event_date':
             try {
                 $e = new Ai1ec_Event($post_id);
                 echo $e->get_timespan_html();
             } catch (Exception $e) {
                 // event wasn't found, output empty string
                 echo "";
             }
             break;
     }
 }
 /**
  * the_title_admin method
  *
  * Override title, visible in admin side, to display parent event
  * title in-line.
  *
  * @param string $title	  Title to be displayed
  * @param int	 $post_id ID of post being displayed
  *
  * @return string Modified title
  */
 public function the_title_admin($title, $post_id)
 {
     global $ai1ec_events_helper;
     $parent_post_id = $ai1ec_events_helper->event_parent($post_id);
     if ($parent_post_id) {
         try {
             $current_event = new Ai1ec_Event($post_id);
             $title .= ' @ ' . $current_event->get_timespan_html();
         } catch (Ai1ec_Event_Not_Found $exception) {
             // ignore
         }
     }
     return $title;
 }