Skip to content

Commit

Permalink
Added a clickable link to add a Critique automatically linked to the …
Browse files Browse the repository at this point in the history
…Text being displayed, for #8
  • Loading branch information
victorkane committed Dec 31, 2013
1 parent bbf8b13 commit 5d0187f
Show file tree
Hide file tree
Showing 14 changed files with 1,349 additions and 1 deletion.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Description
===========
Allows the contents of an "Entity Reference" field to be pre-populated by
taking a parameter from the URL path.

Install
=======
1. Download and enable the module.
2. Visit admin/structure/types/manage/[ENTITY-TYPE]/fields/[FIELD-NAME]
3. Enable "Entity reference prepopulate" under the instance settings.


Configuration
=============
Enable Entity reference prepopulate:
Check this to enable Entity reference prepopulate on this field.
Action
Using the select box choose the action to take if the entity reference
field is pre-populated.
Fallback behaviour
Select what to do if the URL path does NOT contain a parameter to
pre-populate the field.
Skip access permission
This is a fallback override, the fallback behaviour will not be followed
for users with the specified permission.

Usage
=====
In order to pre-populate an entity reference field you have to supply the
parameter in the URL.

The structure is
node/add/article?[field_ref]=[id]

Where [field_ref] is the name of the entity reference field and [id] is
the id of the entity being referenced.

Examples:
node/add/article?field_foo=1
node/add/page?field_bar=1,2,3


Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name = Entity reference prepopulate
description = Prepopulate entity reference values from URL.
core = 7.x
package = Fields
dependencies[] = entityreference

files[] = entityreference_prepopulate.test

; Information added by Drupal.org packaging script on 2013-12-24
version = "7.x-1.4"
core = "7.x"
project = "entityreference_prepopulate"
datestamp = "1387912121"

Loading

0 comments on commit 5d0187f

Please sign in to comment.