You are here

function enterprise_base_default_picture_mapping in Enterprise Base 7.3

Implements hook_default_picture_mapping().

File

./enterprise_base.default_picture_mapping.inc, line 10
enterprise_base.default_picture_mapping.inc

Code

function enterprise_base_default_picture_mapping() {
  $export = array();
  $picture_mapping = new stdClass();
  $picture_mapping->disabled = FALSE;

  /* Edit this to true to make a default picture_mapping disabled initially */
  $picture_mapping->api_version = 1;
  $picture_mapping->machine_name = 'default';
  $picture_mapping->breakpoint_group = 'default';
  $picture_mapping->mapping = array(
    'custom.user.mobile' => array(
      '1x' => '300x150',
    ),
    'custom.user.tablet' => array(
      '1x' => '600x300',
    ),
    'custom.user.normal' => array(
      '1x' => '900x450',
    ),
    'custom.user.wide' => array(
      '1x' => '900x450',
    ),
  );
  $export['default'] = $picture_mapping;
  $picture_mapping = new stdClass();
  $picture_mapping->disabled = FALSE;

  /* Edit this to true to make a default picture_mapping disabled initially */
  $picture_mapping->api_version = 1;
  $picture_mapping->machine_name = 'large';
  $picture_mapping->breakpoint_group = 'large';
  $picture_mapping->mapping = array(
    'custom.user.mobile' => array(
      '1x' => '400x200',
    ),
    'custom.user.tablet' => array(
      '1x' => '600x300',
    ),
    'custom.user.normal' => array(
      '1x' => '700x350',
    ),
    'custom.user.wide' => array(
      '1x' => '900x450',
    ),
  );
  $export['large'] = $picture_mapping;
  $picture_mapping = new stdClass();
  $picture_mapping->disabled = FALSE;

  /* Edit this to true to make a default picture_mapping disabled initially */
  $picture_mapping->api_version = 1;
  $picture_mapping->machine_name = 'medium';
  $picture_mapping->breakpoint_group = 'medium';
  $picture_mapping->mapping = array(
    'custom.user.mobile' => array(
      '1x' => '300x150',
    ),
    'custom.user.tablet' => array(
      '1x' => '400x200',
    ),
    'custom.user.normal' => array(
      '1x' => '600x300',
    ),
    'custom.user.wide' => array(
      '1x' => '700x350',
    ),
  );
  $export['medium'] = $picture_mapping;
  $picture_mapping = new stdClass();
  $picture_mapping->disabled = FALSE;

  /* Edit this to true to make a default picture_mapping disabled initially */
  $picture_mapping->api_version = 1;
  $picture_mapping->machine_name = 'small';
  $picture_mapping->breakpoint_group = 'small';
  $picture_mapping->mapping = array(
    'custom.user.mobile' => array(
      '1x' => '150x75',
    ),
    'custom.user.tablet' => array(
      '1x' => '300x150',
    ),
    'custom.user.normal' => array(
      '1x' => '400x200',
    ),
    'custom.user.wide' => array(
      '1x' => '600x300',
    ),
  );
  $export['small'] = $picture_mapping;
  return $export;
}