updated publication feature
This commit is contained in:
parent
f9f0ce54ec
commit
342655bf2b
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_publications.features.field_base.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_field_bases().
|
||||
*/
|
||||
function materio_publications_field_default_field_bases() {
|
||||
$field_bases = array();
|
||||
|
||||
// Exported field_base: 'field_couverture'
|
||||
$field_bases['field_couverture'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_couverture',
|
||||
'field_permissions' => array(
|
||||
'type' => 0,
|
||||
),
|
||||
'indexes' => array(
|
||||
'fid' => array(
|
||||
0 => 'fid',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'default_image' => 0,
|
||||
'entity_translation_sync' => array(
|
||||
0 => 'fid',
|
||||
),
|
||||
'profile2_private' => FALSE,
|
||||
'uri_scheme' => 'public',
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'image',
|
||||
);
|
||||
|
||||
return $field_bases;
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_publications.features.user_permission.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_user_default_permissions().
|
||||
*/
|
||||
function materio_publications_user_default_permissions() {
|
||||
$permissions = array();
|
||||
|
||||
// Exported permission: 'create publication content'.
|
||||
$permissions['create publication content'] = array(
|
||||
'name' => 'create publication content',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'delete any publication content'.
|
||||
$permissions['delete any publication content'] = array(
|
||||
'name' => 'delete any publication content',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'delete own publication content'.
|
||||
$permissions['delete own publication content'] = array(
|
||||
'name' => 'delete own publication content',
|
||||
'roles' => array(),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'edit any publication content'.
|
||||
$permissions['edit any publication content'] = array(
|
||||
'name' => 'edit any publication content',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'edit own publication content'.
|
||||
$permissions['edit own publication content'] = array(
|
||||
'name' => 'edit own publication content',
|
||||
'roles' => array(),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'show publication title'.
|
||||
$permissions['show publication title'] = array(
|
||||
'name' => 'show publication title',
|
||||
'roles' => array(),
|
||||
'module' => 'materio_page_title',
|
||||
);
|
||||
|
||||
return $permissions;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user