public function dispatchAfterForm($type = '')
{
if ($type) {
$type = Inflector::camelize($type);
}
$event = $this->dispatchEvent('after' . $type . 'Form', array('fields' => array(), 'id' => $this->__id), array('class' => 'Form', 'plugin' => ''));
$out = '';
if ($event !== false) {
if (!empty($event->data['fields'])) {
foreach ($event->data['fields'] as $field) {
$out .= "<tr>";
$out .= "<th class=\"col-head\">" . $field['title'] . "</th>\n";
$out .= "<td class=\"col-input\">" . $field['input'] . "</td>\n";
$out .= "</tr>";
}
}
}
return $out;
}