Steve Jones wrote:
This is clearly in either a form _submit or _validate handler, so you'll want to read, and understand:
I already read it - multiple times - and it didn't help. I wouldn't have written to this list for help if I hadn't first tried to figure it out on my own and read all the relevant docs. - Sheryl -----Original Message----- From: development-bounces@drupal.org [mailto:development-bounces@drupal.org] On Behalf Of Sheryl (Permutations Software) Sent: Wednesday, January 21, 2009 1:26 AM To: development@drupal.org Subject: [development] converting a module from Drupal 5 to Drupal 6 I'm converting a module from Drupal 5 to Drupal 6, and I'm having a very hard time understanding the change in the use of 'op'. I can't figure out how I need to change my code. There are these lines. if (!empty($form_values['op'])) { _phpfreechat_clear_cache(); _phpfreechat_clear_cookies(); } if (!_phpfreechat_check_install()) { form_set_error('op', _phpfreechat_not_found()); } if (!_phpfreechat_check_files()) { form_set_error('op', t('Unable to create data folders for phpfreechat.')); } I took this module over from someone else, so I don't fully understand the use of 'op' here to begin with. Not understanding what it's doing makes it very hard to rewrite. I've spent the last two hours on the Drupal site trying to figure it out and I'm boggled. All I can tell is that 'op' was the default name of buttons in Drupal 5, but I still can't figure out what's being tested in these "if" statements or how I need to rewrite them for Drupal 6. Any guidance you can give me would be greatly appreciated! - Sheryl