Dereference list
Installs:
171
Open Bugs:
1
Development Status:
Seeking co-maintainer(s)
Under active development
This project enables list fields to populate their allowed values from a field on a referenced entity. For example, the Project issue tracking module reads the allowed values of the component list field on issue nodes from a field on a project (which can be found through an entityreference).
Note: this module requires Drupal core 7.14 or later, since it depends on the changes introduced at #1541792: Enable dynamic allowed list values function with additional context
.
Here's an example of how to use it:
<?php
$field = array(
'cardinality' => '1',
'field_name' => 'field_issue_component',
'module' => 'list',
'settings' => array(
'allowed_values_function' => 'dereference_list_allowed_list_values',
'entityreference_field' => 'field_project',
'dereferenced_field' => 'field_project_components',
),
'type' => 'list_text',
);
?>
This module was written by chx alone, don't blame bdragon for it.
Releases:
7.x-1.x-dev
Release Dates:
09/30/2013