null, 'css' => null ); function token($options) { $callback = $this->getConf('url_callback'); if ($callback) { $href = call_user_func($callback, $options['path']); } else { $href = $options['path']; } if ($this->getConf('css')) { $css = ' class="' . $this->getConf('css') . '"'; } else { $css = ''; } $output = '' . $options['text'] . ''; return $output; } }