Hi,
I am trying to access data from quickform but the callback submit_keys doesn't seem to be called.
<?php
defined("_VALID_ACCESS") || die('Direct access forbidden'); // - security feature
class Custom_XeroConnect extends Module { // - notice how the class name represents its path
public function body() { // - modules main code
//print('Xero Connect');
$form = $this->init_module('Libs/QuickForm');
$form->addElement('header', 'title', __('Xero Connect'));
$form->addElement('text','consumer_key',__('Consumer Key'));
$form->addElement('text','secret_key',__('Secret Key'));
$form->addElement('header', 'subtitle1', __('Certificates'));
$form->addElement('submit', 'button', __('Save'), $form->get_submit_form_href());
$this->display_module($form, array( array($this,'submit_keys') ));
}
public function submit_keys() {
$args = func_get_args();
var_dump($args);
}
}
?>
Any thoughts??
Regards
Glenn