diff --git a/cod_events/cod_events.features.inc b/cod_events/cod_events.features.inc
index e12e24ad6755b469400fe5e58cafb3b51a455bb7..fb08b9054440cbc3431d4e5a8183fc94dc530f3c 100644
--- a/cod_events/cod_events.features.inc
+++ b/cod_events/cod_events.features.inc
@@ -30,6 +30,52 @@ function cod_events_views_api() {
 }
 
 /**
+ * Implements hook_flag_default_flags().
+ */
+function cod_events_flag_default_flags() {
+  $flags = array();
+  // Exported flag: "Default Event".
+  $flags['default_event'] = array(
+    'content_type' => 'node',
+    'title' => 'Default Event',
+    'global' => '1',
+    'types' => array(
+      0 => 'event',
+    ),
+    'flag_short' => 'Default event',
+    'flag_long' => 'Make this event the default flag',
+    'flag_message' => 'This is the now default event',
+    'unflag_short' => 'Remove default event',
+    'unflag_long' => '',
+    'unflag_message' => '',
+    'unflag_denied_text' => '',
+    'link_type' => 'toggle',
+    'roles' => array(
+      'flag' => array(
+        0 => '2',
+      ),
+      'unflag' => array(
+        0 => '2',
+      ),
+    ),
+    'weight' => 0,
+    'show_on_form' => 1,
+    'access_author' => '',
+    'show_on_page' => 1,
+    'show_on_teaser' => 1,
+    'show_contextual_link' => 0,
+    'i18n' => 0,
+    'api_version' => 2,
+    'module' => 'cod_events',
+    'locked' => array(
+      0 => 'name',
+    ),
+  );
+  return $flags;
+
+}
+
+/**
  * Implements hook_node_info().
  */
 function cod_events_node_info() {
diff --git a/cod_events/cod_events.module b/cod_events/cod_events.module
index 456dbab2be495256299e8c651291c00fe1b4eb07..8c001c2b82d609eb84c7599c5bb940d1dc3240ee 100644
--- a/cod_events/cod_events.module
+++ b/cod_events/cod_events.module
@@ -1,5 +1,6 @@
 <?php
 
+define('DEFAULT_EVENT','default_event');
 include_once('cod_events.features.inc');
 
 /*
@@ -53,7 +54,7 @@ function cod_events_day_url($day) {
   return strtolower($day);
 }
 
-/*
+/**
  * Make the event dashboard be an admin path
  */
 function cod_events_admin_paths() {
@@ -61,4 +62,33 @@ function cod_events_admin_paths() {
     'node/*/dashboard' => TRUE,
   );
   return $paths;
-}
\ No newline at end of file
+}
+
+/**
+ * Implements hook_form_alter().
+ * - Add default event to all new node types, this is based off a flagged
+ * entity
+ */
+function cod_events_form_alter(&$form, &$form_state, $form_id) {
+  $which_flag = flag_get_flags($entity_type = NULL, $content_subtype = NULL, $account = NULL);
+  $default_event = $which_flag['default_event'];
+  $default_fid = 5;
+  if (empty($form['nid']['#value'])) {
+    if ($default_event->name == 'default_event' && $default_event->fid == $default_fid) {
+      $form['og_group_ref']['und'][0]['default']['#default_value'] = _get_flag_etid($default_fid);
+    }
+  }
+}
+
+/**
+ * Helper function to get an etid assigned to a flag
+ * @param  $fid: Flag id set
+ * @return content_id from {flag_content}
+ */
+function _get_flag_etid($fid) {
+  return db_select('flag_content', 'fc')
+    ->fields('fc', array('content_id'))
+    ->condition('fid', $fid)
+    ->execute()
+    ->fetchField();
+}
diff --git a/cod_events/cod_events.views_default.inc b/cod_events/cod_events.views_default.inc
index 726b44ca294a70536de252ce6333f75e612ed3e8..990af31352aadf12fd61966cef1110e846a4c2a0 100644
--- a/cod_events/cod_events.views_default.inc
+++ b/cod_events/cod_events.views_default.inc
@@ -45,6 +45,14 @@ function cod_events_views_default_views() {
 </ul>
 ';
   $handler->display->display_options['header']['area']['format'] = 'filtered_html';
+  /* Relationship: Flags: default_event */
+  $handler->display->display_options['relationships']['flag_content_rel']['id'] = 'flag_content_rel';
+  $handler->display->display_options['relationships']['flag_content_rel']['table'] = 'node';
+  $handler->display->display_options['relationships']['flag_content_rel']['field'] = 'flag_content_rel';
+  $handler->display->display_options['relationships']['flag_content_rel']['label'] = 'Default event';
+  $handler->display->display_options['relationships']['flag_content_rel']['required'] = 0;
+  $handler->display->display_options['relationships']['flag_content_rel']['flag'] = 'default_event';
+  $handler->display->display_options['relationships']['flag_content_rel']['user_scope'] = 'any';
   /* Field: Content: Title */
   $handler->display->display_options['fields']['title']['id'] = 'title';
   $handler->display->display_options['fields']['title']['table'] = 'node';
@@ -79,6 +87,13 @@ function cod_events_views_default_views() {
   $handler->display->display_options['fields']['nothing_1']['alter']['make_link'] = TRUE;
   $handler->display->display_options['fields']['nothing_1']['alter']['path'] = 'node/[nid]/dashboard';
   $handler->display->display_options['fields']['nothing_1']['element_label_colon'] = FALSE;
+  /* Field: Flags: Flag link */
+  $handler->display->display_options['fields']['ops']['id'] = 'ops';
+  $handler->display->display_options['fields']['ops']['table'] = 'flag_content';
+  $handler->display->display_options['fields']['ops']['field'] = 'ops';
+  $handler->display->display_options['fields']['ops']['relationship'] = 'flag_content_rel';
+  $handler->display->display_options['fields']['ops']['label'] = '';
+  $handler->display->display_options['fields']['ops']['element_label_colon'] = FALSE;
   /* Sort criterion: Content: Post date */
   $handler->display->display_options['sorts']['created']['id'] = 'created';
   $handler->display->display_options['sorts']['created']['table'] = 'node';
diff --git a/cod_events/plugins/content_types/cod_events_pane.inc b/cod_events/plugins/content_types/cod_events_pane.inc
index d322219808e2072ebe0ebdbce8f4733680387d17..d3e0c6930021c603208bfa9bd26a02d8135da00d 100644
--- a/cod_events/plugins/content_types/cod_events_pane.inc
+++ b/cod_events/plugins/content_types/cod_events_pane.inc
@@ -23,6 +23,7 @@ function cod_events_pane_content_type_render($subtype, $conf, $context = NULL) {
   // could go here.
   // that private js function is so bad that fixing it will be the
   // basis of the next tutorial
+  $block = new stdClass();
   $block->title = t('Room/Timeslot Scheduler');
 
   if($node = node_load(array_shift($context))) {
@@ -374,4 +375,4 @@ function cod_events_get_collection_entity($room_nid, $time_nid, $event_id) {
   $entity_id = db_query($sql, array(':nid' => $room_nid, ':time_nid' => $time_nid, ':event_id' => $event_id))->fetchField();
 
   return $entity_id;
-}
\ No newline at end of file
+}
