process mform data

process mform data

by Kritika Sood -
Number of replies: 2

Hi everyone

I have a file edit_form.php in my custom block for block configuration settings.In this file i am extending block_edit_form to override definition function to add my custom fields in block configuration settings .In this file i am adding mform custom elements and accesing them using config_.

eg.  $mform->addElement('text', 'config_names', get_string('name'));

accesing data using print_r($this->config);

Now i want to insert this data in my block table on click of "save changes" button  but i am unable to do it.Please tell me how to process this data inside my block ?

Average of ratings: -