You are here

function _nodereference_CrumbsPlugin::define in Crumbs, the Breadcrumbs suite 6.2

Same name and namespace in other branches
  1. 6 plugins/crumbs.nodereference.inc \_nodereference_CrumbsPlugin::define()

Tell crumbs that this object defines more than one rule. Each returned rule will be shown in the config form to move up and down.

File

plugins/crumbs.nodereference.inc, line 33

Class

_nodereference_CrumbsPlugin
Implementation of class hook CrumbsPlugin on the behalf of menu module.

Code

function define($h) {
  $h
    ->enabledByDefault(FALSE);
  foreach ($this
    ->_getReferenceableTypes() as $type_name) {
    $h
      ->addRule($type_name);
  }
}