added link with query for target node id and prepopulated node form
This commit is contained in:
@@ -35,44 +35,25 @@ function materio_personal_notes_field_default_field_bases() {
|
||||
'type' => 'text_long',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_target_content'.
|
||||
$field_bases['field_target_content'] = array(
|
||||
// Exported field_base: 'field_target_content_nid'.
|
||||
$field_bases['field_target_content_nid'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_target_content',
|
||||
'field_name' => 'field_target_content_nid',
|
||||
'field_permissions' => array(
|
||||
'type' => 1,
|
||||
),
|
||||
'indexes' => array(
|
||||
'target_id' => array(
|
||||
0 => 'target_id',
|
||||
),
|
||||
),
|
||||
'indexes' => array(),
|
||||
'locked' => 0,
|
||||
'module' => 'entityreference',
|
||||
'module' => 'number',
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'handler' => 'base',
|
||||
'handler_settings' => array(
|
||||
'behaviors' => array(
|
||||
'views-select-list' => array(
|
||||
'status' => 0,
|
||||
),
|
||||
),
|
||||
'sort' => array(
|
||||
'type' => 'none',
|
||||
),
|
||||
'target_bundles' => array(
|
||||
'materiau' => 'materiau',
|
||||
),
|
||||
),
|
||||
'profile2_private' => FALSE,
|
||||
'target_type' => 'node',
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'entityreference',
|
||||
'type' => 'number_integer',
|
||||
);
|
||||
|
||||
return $field_bases;
|
||||
|
@@ -87,8 +87,8 @@ function materio_personal_notes_field_default_field_instances() {
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-note-field_target_content'.
|
||||
$field_instances['node-note-field_target_content'] = array(
|
||||
// Exported field_instance: 'node-note-field_target_content_nid'.
|
||||
$field_instances['node-note-field_target_content_nid'] = array(
|
||||
'bundle' => 'note',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
@@ -144,18 +144,22 @@ function materio_personal_notes_field_default_field_instances() {
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_target_content',
|
||||
'label' => 'Target content',
|
||||
'field_name' => 'field_target_content_nid',
|
||||
'label' => 'Target content nid',
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'max' => '',
|
||||
'min' => '',
|
||||
'prefix' => '',
|
||||
'suffix' => '',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'field_extrawidgets',
|
||||
'active' => 0,
|
||||
'module' => 'number',
|
||||
'settings' => array(),
|
||||
'type' => 'field_extrawidgets_hidden',
|
||||
'type' => 'number',
|
||||
'weight' => 1,
|
||||
),
|
||||
);
|
||||
@@ -163,7 +167,7 @@ function materio_personal_notes_field_default_field_instances() {
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Note');
|
||||
t('Target content');
|
||||
t('Target content nid');
|
||||
|
||||
return $field_instances;
|
||||
}
|
||||
|
@@ -9,15 +9,16 @@ dependencies[] = materio_page_title
|
||||
dependencies[] = materio_personalnotes
|
||||
dependencies[] = metatag
|
||||
dependencies[] = node
|
||||
dependencies[] = number
|
||||
dependencies[] = override_node_options
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = text
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[features_api][] = api:2
|
||||
features[field_base][] = field_personal_note
|
||||
features[field_base][] = field_target_content
|
||||
features[field_base][] = field_target_content_nid
|
||||
features[field_instance][] = node-note-field_personal_note
|
||||
features[field_instance][] = node-note-field_target_content
|
||||
features[field_instance][] = node-note-field_target_content_nid
|
||||
features[node][] = note
|
||||
features[user_permission][] = create note content
|
||||
features[user_permission][] = create own personal notes
|
||||
@@ -53,6 +54,7 @@ features[variable][] = metatag_enable_node__note
|
||||
features[variable][] = node_options_note
|
||||
features[variable][] = node_preview_note
|
||||
features[variable][] = node_submitted_note
|
||||
features[variable][] = nodeformscols_field_placements_note_default
|
||||
features[variable][] = print_html_display_comment_note
|
||||
features[variable][] = print_html_display_note
|
||||
features[variable][] = print_html_display_urllist_note
|
||||
|
@@ -194,6 +194,48 @@ function materio_personal_notes_strongarm() {
|
||||
$strongarm->value = TRUE;
|
||||
$export['metatag_enable_node__note'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'nodeformscols_field_placements_note_default';
|
||||
$strongarm->value = array(
|
||||
'additional_settings' => array(
|
||||
'region' => 'footer',
|
||||
'weight' => '1',
|
||||
'has_required' => FALSE,
|
||||
'title' => 'Vertical tabs',
|
||||
'hidden' => 1,
|
||||
),
|
||||
'actions' => array(
|
||||
'region' => 'main',
|
||||
'weight' => '2',
|
||||
'has_required' => FALSE,
|
||||
'title' => 'Save',
|
||||
'hidden' => 0,
|
||||
),
|
||||
'entity_translation_entity_form_language_update' => array(
|
||||
'region' => 'footer',
|
||||
'weight' => '0',
|
||||
'has_required' => FALSE,
|
||||
'title' => NULL,
|
||||
'hidden' => 1,
|
||||
),
|
||||
'field_personal_note' => array(
|
||||
'region' => 'main',
|
||||
'weight' => '1',
|
||||
'has_required' => FALSE,
|
||||
'title' => 'Note',
|
||||
'hidden' => 0,
|
||||
),
|
||||
'field_target_content_nid' => array(
|
||||
'region' => 'main',
|
||||
'weight' => '0',
|
||||
'has_required' => TRUE,
|
||||
'title' => 'Target content nid',
|
||||
),
|
||||
);
|
||||
$export['nodeformscols_field_placements_note_default'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
|
Reference in New Issue
Block a user