commons_invite.context.inc in Drupal Commons 6.2
File
modules/features/commons_invite/commons_invite.context.inc
View source
<?php
function commons_invite_context_default_contexts() {
$export = array();
$context = new stdClass();
$context->disabled = FALSE;
$context->api_version = 3;
$context->name = 'profile-me-invite';
$context->description = 'Add invite sender to your own profile';
$context->tag = 'Profile';
$context->conditions = array(
'user_page' => array(
'values' => array(
'view' => 'view',
),
'options' => array(
'mode' => 'current',
),
),
);
$context->reactions = array(
'block' => array(
'blocks' => array(
'invite-0' => array(
'module' => 'invite',
'delta' => '0',
'region' => 'sidebar_last',
'weight' => 4,
),
),
),
);
$context->condition_mode = 0;
t('Add invite sender to your own profile');
t('Profile');
$export['profile-me-invite'] = $context;
return $export;
}