You are here

public function RulesElementMap::lookup in Rules 7.2

Looks up the element with the given id.

File

ui/ui.core.inc, line 142
Contains core Rules UI functions.

Class

RulesElementMap
Helper object for mapping elements to ids.

Code

public function lookup($id) {
  if (!$this->index) {
    $this
      ->index();
  }
  return isset($this->index[$id]) ? $this->index[$id] : FALSE;
}