function action()
{
- common_local_url('favor');
+ return common_local_url('favor');
}
/**
common_session_token());
}
+
+ /**
+ * Legend of the Form
+ *
+ * @return void
+ */
+ function formLegend()
+ {
+ $this->out->element('legend', null, _('Favor this notice'));
+ }
+
+
/**
* Data elements
*
function formActions()
{
$this->out->submit('favor-submit-' . $this->notice->id,
- _('Make a favorite'));
+ _('Favor'), 'submit', null, _('Favor this notice'));
}
-}
\ No newline at end of file
+
+ /**
+ * Class of the form.
+ *
+ * @return string the form's class
+ */
+
+ function formClass()
+ {
+ return 'form_favor';
+ }
+}