added publications links and display of pubications pages
This commit is contained in:
@@ -132,16 +132,16 @@ function materio_publications_field_default_field_instances() {
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'image_link' => '',
|
||||
'image_style' => 'large',
|
||||
'image_style' => 'publication-couv',
|
||||
),
|
||||
'type' => 'image',
|
||||
'weight' => 2,
|
||||
'weight' => 0,
|
||||
),
|
||||
'homeblock' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'image_link' => '',
|
||||
'image_link' => 'content',
|
||||
'image_style' => 'publications-home',
|
||||
),
|
||||
'type' => 'image',
|
||||
@@ -221,10 +221,9 @@ function materio_publications_field_default_field_instances() {
|
||||
),
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'list',
|
||||
'settings' => array(),
|
||||
'type' => 'list_default',
|
||||
'weight' => 3,
|
||||
'type' => 'hidden',
|
||||
'weight' => 2,
|
||||
),
|
||||
'homeblock' => array(
|
||||
'label' => 'above',
|
||||
|
@@ -13,6 +13,31 @@ function materio_publications_ctools_plugin_api($module = NULL, $api = NULL) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_image_default_styles().
|
||||
*/
|
||||
function materio_publications_image_default_styles() {
|
||||
$styles = array();
|
||||
|
||||
// Exported image style: publication-couv.
|
||||
$styles['publication-couv'] = array(
|
||||
'label' => 'publication-couv',
|
||||
'effects' => array(
|
||||
16 => array(
|
||||
'name' => 'image_scale',
|
||||
'data' => array(
|
||||
'width' => 480,
|
||||
'height' => 480,
|
||||
'upscale' => 1,
|
||||
),
|
||||
'weight' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
return $styles;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_node_info().
|
||||
*/
|
||||
|
@@ -56,7 +56,10 @@ function materio_publications_user_default_permissions() {
|
||||
// Exported permission: 'show publication title'.
|
||||
$permissions['show publication title'] = array(
|
||||
'name' => 'show publication title',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'anonymous user' => 'anonymous user',
|
||||
'authenticated user' => 'authenticated user',
|
||||
),
|
||||
'module' => 'materio_page_title',
|
||||
);
|
||||
|
||||
|
@@ -3,8 +3,9 @@ core = 7.x
|
||||
package = Materio
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = list
|
||||
dependencies[] = image
|
||||
dependencies[] = materio_content_types
|
||||
dependencies[] = materio_page_title
|
||||
dependencies[] = metatag
|
||||
dependencies[] = node
|
||||
dependencies[] = strongarm
|
||||
@@ -17,6 +18,7 @@ features[field_base][] = field_weight
|
||||
features[field_instance][] = node-publication-body
|
||||
features[field_instance][] = node-publication-field_couverture
|
||||
features[field_instance][] = node-publication-field_weight
|
||||
features[image][] = publication-couv
|
||||
features[node][] = publication
|
||||
features[user_permission][] = create publication content
|
||||
features[user_permission][] = delete any publication content
|
||||
@@ -64,8 +66,6 @@ features[variable][] = unique_field_show_matches_publication
|
||||
features[variable][] = workflow_publication
|
||||
features[workflow][] = Publication
|
||||
features[workflow_access][] = Publication
|
||||
features_exclude[dependencies][image] = image
|
||||
features_exclude[dependencies][materio_page_title] = materio_page_title
|
||||
features_exclude[dependencies][materio_subscriptions] = materio_subscriptions
|
||||
features_exclude[dependencies][options] = options
|
||||
project path = sites/all/modules/features
|
||||
|
@@ -142,6 +142,9 @@ function materio_publications_strongarm() {
|
||||
'token' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'homeblock' => array(
|
||||
'custom_settings' => TRUE,
|
||||
),
|
||||
),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
|
Reference in New Issue
Block a user