Created
July 5, 2012 21:49
-
-
Save miklb/3056713 to your computer and use it in GitHub Desktop.
Modify Habari plugin Jambo formUI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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