protected function _nodereference_CrumbsPlugin::_readParentNodeReference in Crumbs, the Breadcrumbs suite 6
Same name and namespace in other branches
- 6.2 plugins/crumbs.nodereference.inc \_nodereference_CrumbsPlugin::_readParentNodeReference()
1 call to _nodereference_CrumbsPlugin::_readParentNodeReference()
- _nodereference_CrumbsPlugin::findParent__node__ in plugins/
crumbs.nodereference.inc - Match "node/%" router path
File
- plugins/
crumbs.nodereference.inc, line 58
Class
- _nodereference_CrumbsPlugin
- Implementation of class hook CrumbsPlugin on the behalf of menu module.
Code
protected function _readParentNodeReference($node) {
$values = array();
$field_key = $this->_field_key;
$field = $node->{$field_key};
if (is_array($field) && !empty($field[0]['nid'])) {
return (int) $field[0]['nid'];
}
}