You are here

protected function _nodereference_CrumbsPlugin::_readParentNodeReference in Crumbs, the Breadcrumbs suite 6.2

Same name and namespace in other branches
  1. 6 plugins/crumbs.nodereference.inc \_nodereference_CrumbsPlugin::_readParentNodeReference()
1 call to _nodereference_CrumbsPlugin::_readParentNodeReference()
_nodereference_CrumbsPlugin::findParent__node_x in plugins/crumbs.nodereference.inc
Match "node/%" router path

File

plugins/crumbs.nodereference.inc, line 62

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'];
  }
}