Commit b9179f1f authored by Eric Bremner's avatar Eric Bremner
Browse files

FDSU-1644: Adding UW virtual site homepage settings.

parents
<?php
/**
* @file
* uw_virtual_site_homepage.features.field_base.inc
*/
/**
* Implements hook_field_default_field_bases().
*/
function uw_virtual_site_homepage_field_default_field_bases() {
$field_bases = array();
// Exported field_base: 'field_faculty'
$field_bases['field_faculty'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_faculty',
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(
'max_length' => 255,
),
'translatable' => 0,
'type' => 'text',
);
// Exported field_base: 'field_profile_image'
$field_bases['field_profile_image'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_profile_image',
'foreign keys' => array(
'fid' => array(
'columns' => array(
'fid' => 'fid',
),
'table' => 'file_managed',
),
),
'indexes' => array(
'fid' => array(
0 => 'fid',
),
),
'locked' => 0,
'module' => 'image',
'settings' => array(
'default_image' => 0,
'uri_scheme' => 'public',
),
'translatable' => 0,
'type' => 'image',
);
return $field_bases;
}
<?php
/**
* @file
* uw_virtual_site_homepage.features.field_instance.inc
*/
/**
* Implements hook_field_default_field_instances().
*/
function uw_virtual_site_homepage_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'node-uw_virtual_site_homepage-body'
$field_instances['node-uw_virtual_site_homepage-body'] = array(
'bundle' => 'uw_virtual_site_homepage',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 2,
),
'links' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'no_image_teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'sidebar_teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'slide_teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => 600,
),
'type' => 'text_summary_or_trimmed',
'weight' => 1,
),
'title' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'body',
'label' => 'Site Description',
'required' => 0,
'settings' => array(
'display_summary' => 1,
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => 4,
),
);
// Exported field_instance: 'node-uw_virtual_site_homepage-field_faculty'
$field_instances['node-uw_virtual_site_homepage-field_faculty'] = array(
'bundle' => 'uw_virtual_site_homepage',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 3,
),
'links' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'no_image_teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'sidebar_teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'slide_teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'title' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_faculty',
'label' => 'Faculty',
'required' => 0,
'settings' => array(
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 5,
),
);
// Exported field_instance: 'node-uw_virtual_site_homepage-field_profile_image'
$field_instances['node-uw_virtual_site_homepage-field_profile_image'] = array(
'bundle' => 'uw_virtual_site_homepage',
'deleted' => 0,
'description' => 'Images should be 360 pixels by 480 pixels.',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'image',
'settings' => array(
'image_link' => '',
'image_style' => '',
),
'type' => 'image',
'weight' => 4,
),
'links' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'no_image_teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'sidebar_teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'slide_teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'title' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_profile_image',
'label' => 'Profile image',
'required' => 0,
'settings' => array(
'alt_field' => 0,
'default_image' => 0,
'file_directory' => '',
'file_extensions' => 'png gif jpg jpeg',
'filefield_paths' => array(
'active_updating' => 0,
'file_name' => array(
'options' => array(
'pathauto' => 0,
'transliterate' => 0,
),
'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
),
'file_path' => array(
'options' => array(
'pathauto' => 0,
'transliterate' => 0,
),
'value' => '',
),
'retroactive_update' => 0,
),
'max_filesize' => '10 MB',
'max_resolution' => '',
'min_resolution' => '360x480',
'title_field' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'media',
'settings' => array(
'allowed_schemes' => array(
'embed' => 0,
'oembed' => 0,
'private' => 'private',
'public' => 'public',
),
'allowed_types' => array(
'audio' => 0,
'document' => 0,
'executable' => 0,
'html' => 0,
'icon' => 0,
'image' => 'image',
'undefined' => 0,
'video' => 0,
),
'browser_plugins' => array(
'media_default--media_browser_1' => 0,
'media_default--media_browser_my_files' => 0,
'media_internet' => 0,
'upload' => 0,
),
'progress_indicator' => 'throbber',
),
'type' => 'media_generic',
'weight' => 3,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Faculty');
t('Images should be 360 pixels by 480 pixels.');
t('Profile image');
t('Site Description');
return $field_instances;
}
<?php
/**
* @file
* uw_virtual_site_homepage.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function uw_virtual_site_homepage_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function uw_virtual_site_homepage_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_node_info().
*/
function uw_virtual_site_homepage_node_info() {
$items = array(
'uw_virtual_site_homepage' => array(
'name' => t('UW Virtual Site Homepage'),
'base' => 'node_content',
'description' => t('University of Waterloo\'s Virtual Site homepage.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
);
return $items;
}
<?php
/**
* @file
* uw_virtual_site_homepage.features.user_permission.inc
*/
/**
* Implements hook_user_default_permissions().
*/
function uw_virtual_site_homepage_user_default_permissions() {
$permissions = array();
// Exported permission: 'create uw_virtual_site_homepage content'.
$permissions['create uw_virtual_site_homepage content'] = array(
'name' => 'create uw_virtual_site_homepage content',
'roles' => array(
'WCMS support' => 'WCMS support',
'administrator' => 'administrator',
'manager' => 'manager',
'vsite admin' => 'vsite admin',
),
'module' => 'node',
);
// Exported permission: 'delete any uw_virtual_site_homepage content'.
$permissions['delete any uw_virtual_site_homepage content'] = array(
'name' => 'delete any uw_virtual_site_homepage content',
'roles' => array(
'WCMS support' => 'WCMS support',
'administrator' => 'administrator',
),
'module' => 'node',
);
// Exported permission: 'delete own uw_virtual_site_homepage content'.
$permissions['delete own uw_virtual_site_homepage content'] = array(
'name' => 'delete own uw_virtual_site_homepage content',
'roles' => array(
'WCMS support' => 'WCMS support',
'administrator' => 'administrator',
'manager' => 'manager',
'vsite admin' => 'vsite admin',
),
'module' => 'node',
);
// Exported permission: 'edit any uw_virtual_site_homepage content'.
$permissions['edit any uw_virtual_site_homepage content'] = array(
'name' => 'edit any uw_virtual_site_homepage content',
'roles' => array(
'WCMS support' => 'WCMS support',
'administrator' => 'administrator',
'manager' => 'manager',
'vsite admin' => 'vsite admin',
),
'module' => 'node',
);
// Exported permission: 'edit own uw_virtual_site_homepage content'.
$permissions['edit own uw_virtual_site_homepage content'] = array(
'name' => 'edit own uw_virtual_site_homepage content',
'roles' => array(
'WCMS support' => 'WCMS support',
'administrator' => 'administrator',
'manager' => 'manager',
'vsite admin' => 'vsite admin',
),
'module' => 'node',
);
return $permissions;
}
name = UW Virtual Site Homepage
description = UW virtual site homepage settings
core = 7.x
package = Features
version = 7.x-1.0
project = uw_virtual_site_homepage
dependencies[] = media
dependencies[] = menu
dependencies[] = node
dependencies[] = og
dependencies[] = os_app_base
dependencies[] = spaces
dependencies[] = strongarm
dependencies[] = text
dependencies[] = views
features[ctools][] = strongarm:strongarm:1
features[ctools][] = views:views_default:3.0
features[features_api][] = api:2
features[field_base][] = field_faculty
features[field_base][] = field_profile_image
features[field_instance][] = node-uw_virtual_site_homepage-body
features[field_instance][] = node-uw_virtual_site_homepage-field_faculty
features[field_instance][] = node-uw_virtual_site_homepage-field_profile_image
features[node][] = uw_virtual_site_homepage
features[user_permission][] = create uw_virtual_site_homepage content
features[user_permission][] = delete any uw_virtual_site_homepage content
features[user_permission][] = delete own uw_virtual_site_homepage content
features[user_permission][] = edit any uw_virtual_site_homepage content
features[user_permission][] = edit own uw_virtual_site_homepage content
features[variable][] = comment_anonymous_uw_virtual_site_homepage
features[variable][] = comment_default_mode_uw_virtual_site_homepage
features[variable][] = comment_default_per_page_uw_virtual_site_homepage
features[variable][] = comment_form_location_uw_virtual_site_homepage
features[variable][] = comment_preview_uw_virtual_site_homepage
features[variable][] = comment_subject_field_uw_virtual_site_homepage
features[variable][] = comment_uw_virtual_site_homepage
features[variable][] = menu_options_uw_virtual_site_homepage
features[variable][] = menu_parent_uw_virtual_site_homepage
features[variable][] = node_options_uw_virtual_site_homepage
features[variable][] = node_preview_uw_virtual_site_homepage
features[variable][] = node_submitted_uw_virtual_site_homepage
features[views_view][] = uw_virtual_site_homepage_view
features_exclude[dependencies][ctools] = ctools
features_exclude[dependencies][features] = features
features_exclude[menu_links][navigation_uw-virtual-site-homepage:node/add/uw-virtual-site-homepage] = navigation_uw-virtual-site-homepage:node/add/uw-virtual-site-homepage
mtime = 1469545491
<?php
/**
* @file
* Code for the UW Virtual Site Homepage feature.
*/
include_once 'uw_virtual_site_homepage.features.inc';
<?php
/**
* @file
* uw_virtual_site_homepage.strongarm.inc
*/
/**
* Implements hook_strongarm().
*/
function uw_virtual_site_homepage_strongarm() {
$export = array();
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_anonymous_uw_virtual_site_homepage';
$strongarm->value = 0;
$export['comment_anonymous_uw_virtual_site_homepage'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_default_mode_uw_virtual_site_homepage';
$strongarm->value = 1;
$export['comment_default_mode_uw_virtual_site_homepage'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_default_per_page_uw_virtual_site_homepage';
$strongarm->value = '50';
$export['comment_default_per_page_uw_virtual_site_homepage'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_form_location_uw_virtual_site_homepage';
$strongarm->value = 1;
$export['comment_form_location_uw_virtual_site_homepage'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_preview_uw_virtual_site_homepage';
$strongarm->value = '1';
$export['comment_preview_uw_virtual_site_homepage'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_subject_field_uw_virtual_site_homepage';
$strongarm->value = 1;
$export['comment_subject_field_uw_virtual_site_homepage'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_uw_virtual_site_homepage';
$strongarm->value = '2';
$export['comment_uw_virtual_site_homepage'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'menu_options_uw_virtual_site_homepage';
$strongarm->value = array(
0 => 'cp',
);
$export['menu_options_uw_virtual_site_homepage'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'menu_parent_uw_virtual_site_homepage';
$strongarm->value = 'cp:390';
$export['menu_parent_uw_virtual_site_homepage'] = $strongarm;
$strongarm = new stdClass();