You are here

function enterprise_base_enterprise_base_apps_structures in Enterprise Base 7

File

./enterprise_base.module, line 469

Code

function enterprise_base_enterprise_base_apps_structures() {
  $structures = array();
  $structures['base'] = array(
    'title' => t('Base'),
  );
  $visibility = array(
    'all' => array(
      'title' => t('Show on all pages in the site'),
      'path' => array(
        'visibility' => 0,
        'pages' => '',
      ),
    ),
    'view' => array(
      'title' => t('Show only on the content list pages'),
      'path' => array(
        'visibility' => 1,
        'pages' => 'nodes*',
      ),
    ),
  );
  $structures['base']['blocks'] = array(
    'views:enterprise_content-block' => array(
      'defaults' => array(
        'regions' => array(
          'sidebar_first',
        ),
        'visibility' => 'view',
      ),
      'visibility' => $visibility,
    ),
  );
  return $structures;
}