This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Swish CVS on 4.7 with Forms API Update?

I installed the latest swish-cvs on a 4.7 system. When I go to administer >> settings >> swish, this error occurs in my error_log:

Call to undefined function:  form_textfield()  in /var/www/html/doadance/drupal03/modules/swish/swish.module on line 65,

I read that the cvs version of swish can be updated to run under 4.7 using FormsAPIUpdate (http://drupal.org/node/59396)

So, I downloaded the Form Updater (4.7), installed and followed the instructions here http://drupal.org/book/export/html/36051 to update the swish.module file.

In that process, this:

function swish_settings(){
  swish_validate_paths();
  $output = form_textfield(t('Swish-E Path'), 'swish_path', 
    variable_get('swish_path', '/usr/local/bin/swish-e'), 20,40,
	t('The absolute path of the swish-e binary.'));
  $output .= form_textfield(t('M$ Word Filter Path'), 'catdoc_path',
	variable_get('catdoc_path', '/usr/local/bin/catdoc'), 20,40,
	t('The absolute path of the M$ Word filter.'));
  $output .= form_textfield(t('M$ Excel Filter Path'), 'xls2csv_path',
	variable_get('xls2csv_path', '/usr/local/bin/xls2csv'), 20,40,
	t('The absolute path of the M$ Excel filter'));
  $output .= form_textfield(t('PDF Filter Path'), 'pdftotext_path',
	variable_get('pdftotext_path', '/usr/local/bin/pdftotext'), 20,40,
	t('The absolute path of the PDF filter.'));
  $output .= form_textfield(t('RTF Filter Path'), 'unrtf_path',

Making CCK & Event Play Nicely

I've started an issue with the Event Module, but I thought I'd try to see if anyone has managed to get the Event Module fully working with CCK.

I've made a few patches to Event in order to get it to populate the 'event type filter control' drop down menu on calendar views. I've patched in order to get 'human readable' event type node titles in calendar views. So far, so good.

Phpfreechat doesn't work with drupal 4.7.2

Hi,
I have installed phpfreechat and the modules. But I have a problem, I can't admin the modules. When I go to the setup page of the phpfreechat appare this error message:
Fatal error: Call to undefined function: form_group() in /web/htdocs/www.example.it/home/modules/phpfreechat/phpfreechat.module on line 144

Can you help me?

array_shift(): The argument should be an array in /home/httpd/html/drupal/includes/form.inc on line 469.

So I am tryig very hard to fix this problem with the above error, but am at a total loss. Essentially I have a module whose sole purpose is to serve as a block that will display information from other modules. Roughly this well serve as a container for up to five other pieces of info. However, whenever I go to configure the block settings I get a white screen and the following error fills up my long:

Lost form values

I am using a menu callback function to display a form to a user. The form is passed through the theme_{function} functionprior to being displayed. When the form is then submitted the field data is missing in the {function}_submit function. However, if I comment out the theme_{function} then the field data is available. Has anyone had any experiences like these or have any ideas?

Markdown/Smartypants & Ordered Lists

Is it just me or is the markdown plugin ignoring ordered lists? When I try to do like I have in other cms, syntax:

1. List Item
1. List Item 2
1. List Item 3

Usually it converts it into a correct list. With just MD/SP on (no filtering or anything else in the way) this syntax is not working.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions