Skip to content

Commit

Permalink
Adding new context for authenticated users.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhedstrom committed Mar 4, 2011
1 parent a6229f6 commit a716835
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions volunteer_shifts/volunteer_shifts.context.inc
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,42 @@ function volunteer_shifts_context_default_contexts() {
t('Volunteer Rally');

$export['sitewide'] = $context;
$context = new stdClass;
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
$context->api_version = 3;
$context->name = 'volunteer_shifts_sitewide_authenticated';
$context->description = '';
$context->tag = 'Volunteer Rally';
$context->conditions = array(
'sitewide' => array(
'values' => array(
1 => 1,
),
),
'user' => array(
'values' => array(
'authenticated user' => 'authenticated user',
),
),
);
$context->reactions = array(
'block' => array(
'blocks' => array(
'menu-secondary-links' => array(
'module' => 'menu',
'delta' => 'secondary-links',
'region' => 'user_tools',
'weight' => 0,
),
),
),
);
$context->condition_mode = 0;

// Translatables
// Included for use with string extractors like potx.
t('Volunteer Rally');

$export['volunteer_shifts_sitewide_authenticated'] = $context;
return $export;
}
1 change: 1 addition & 0 deletions volunteer_shifts/volunteer_shifts.info
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ features[content][] = "shift-field_shift_signup_status"
features[context][] = "front"
features[context][] = "front_authenticated"
features[context][] = "sitewide"
features[context][] = "volunteer_shifts_sitewide_authenticated"
features[ctools][] = "boxes:box:1"
features[ctools][] = "context:context:3"
features[ctools][] = "strongarm:strongarm:1"
Expand Down

0 comments on commit a716835

Please sign in to comment.