'fieldset', '#title' => t('Atrium'), '#tree' => FALSE, '#collapsible' => FALSE, '#collapsed' => FALSE, ); $form['atrium']['atrium_activity_update_type'] = array( '#type' => 'checkbox', '#title' => t('Show in recent activity views'), '#description' => t('Show this content type in activity streams, update lists, etc.'), '#default_value' => variable_get('atrium_activity_update_type_'. $form['#node_type']->type, TRUE), ); } } /** * Abstracts the node types provided in update streams/feed views. */ function atrium_activity_update_types($reset = FALSE) { static $types; if (!isset($types) || $reset) { $types = array(); foreach (array_keys(node_get_types()) as $type) { if (variable_get('atrium_activity_update_type_'. $type, TRUE)) { $types[] = $type; } } } return $types; } /** * Implementation of hook_context_default_contexts_alter(). */ function atrium_activity_context_default_contexts_alter(&$contexts) { // Conditionally add the "Recent Activity" block to the spaces_dashboard-custom-1 context. if (module_exists('atrium') && !empty($contexts['spaces_dashboard-custom-1'])) { $contexts['spaces_dashboard-custom-1']->reactions['block']['blocks']['views-activity_listing-block_1'] = array( 'module' => 'views', 'delta' => 'activity_listing-block_1', 'region' => 'content', 'weight' => 1, ); } }