function panels_term_from_node_panels_relationships in Panels 5.2
Same name and namespace in other branches
- 6.2 relationships/term_from_node.inc \panels_term_from_node_panels_relationships()
@file relationships/term_from_node.inc
Plugin to provide an relationship handler for term from node
File
- relationships/
term_from_node.inc, line 10 - relationships/term_from_node.inc
Code
function panels_term_from_node_panels_relationships() {
$args['term_from_node'] = array(
'title' => t("Term from node"),
'keyword' => 'term',
'description' => t('Adds a taxonomy term from a node context; if multiple terms are selected, this will get the "first" term only.'),
'required context' => new panels_required_context(t('Node'), 'node'),
'context' => 'panels_term_from_node_context',
'settings form' => 'panels_term_from_node_settings_form',
'settings form validate' => 'panels_term_from_node_settings_form_validate',
);
return $args;
}