You are here

function commons_invite_context_default_contexts in Drupal Commons 6.2

Implementation of hook_context_default_contexts().

File

modules/features/commons_invite/commons_invite.context.inc, line 6

Code

function commons_invite_context_default_contexts() {
  $export = array();
  $context = new stdClass();
  $context->disabled = FALSE;

  /* Edit this to true to make a default context disabled initially */
  $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;

  // Translatables
  // Included for use with string extractors like potx.
  t('Add invite sender to your own profile');
  t('Profile');
  $export['profile-me-invite'] = $context;
  return $export;
}