⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

how to quick edit using add_action



DREON
  • profile picture
  • Member

Posted 08 March 2013 - 23:44 PM

how to implement quick edit using add action, i want to put my call back function on my add_action button to

 

to update my record in one click.. please help.

 

$crud->callback_before_update(array($this,'callback_deducted'));


 


 


}    


function callback_deducted($post_array)

        {

          $post_array['datereturned'] = date('Y-m-d');

          $post_array['action'] = ('returned');

          return $post_array;

}