Skip to content

Instantly share code, notes, and snippets.

@miklb
Created July 5, 2012 21:49
Show Gist options
  • Save miklb/3056713 to your computer and use it in GitHub Desktop.
Save miklb/3056713 to your computer and use it in GitHub Desktop.
Modify Habari plugin Jambo formUI
public function action_modify_form_jambo ( $form ) {
$this->add_template('canon_submit', dirname(__FILE__).'/forms/formcontrol_submit.php', true);
$this->add_template( 'canon_email', dirname(__FILE__).'/forms/formcontrol_email.php' );
$form->jambo_submit->template = 'canon_submit';
$form->jambo_email->template = 'canon_email';
$form->append( 'fieldset', 'jambo_commenterinfo', _t( 'Have a Question?' ) );
$form->move_before( $form->jambo_commenterinfo, $form->jambo_name );
$form->jambo_name->move_into($form->jambo_commenterinfo);
$form->jambo_email->move_into( $form->jambo_commenterinfo );
$form->jambo_message->move_into( $form->jambo_commenterinfo );
$form->jambo_submit->caption = _t( 'Fire Away' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment