admin/settings/place_taxonomy has the title "Place" but is basically blank, with this error:

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'place_taxonomy_settings' was given in /home/spsh/public_html/drupal-5.6/includes/form.inc on line 218.

(I'm considering jumping in and helping on this module, if I'm not alone. Is it possible to see screen shots of this module working -- would make it easier to tackle errors? What is the settings page supposed to do?)

Comments

summit’s picture

Hi,
The settings form is missing.
I made a test settings form and then the page shows, but off course with the wrong information...
Add this code to your place_taxonomy. But better, please help make the settings menu which should be there to use the module

function place_taxonomy_settings() {
  $form['place_taxonomy_settings'] = array(
    '#type' => 'textfield',
    '#title' => t('Some sort of setting goes here'),
    '#default_value' => variable_get('place_taxonomy_settings', 'default'),
    '#size' => 10,
    '#maxlength' => 10,
    '#description' => t("The description of the setting.")
  );

Greetings,
Martijn

mlncn’s picture

Assigned: Unassigned » mlncn
Priority: Normal » Minor

The admin page never did anything. I stubbed it out and never put anything there, which is why you get the error, but this would-be settings page and error are immaterial to the working (or not) of the module.

Most Place module settings are made in /admin/content/taxonomy if I remember correctly, create or edit a vocabulary and there's an option to make it a Place vocab and/or location-aware.

Sorry about the ugly error and missing this issue. Thanks Martijn for bringing it to my attention.

benjamin, Agaric Design Collective

summit’s picture

Ok. Thanks for your quick reply.
With this -test- settings page code:

function place_taxonomy_settings() {
  $form['place_taxonomy_settings'] = array(
    '#type' => 'textfield',
    '#title' => t('Some sort of setting goes here'),
    '#default_value' => variable_get('place_taxonomy_settings', 'default'),
    '#size' => 10,
    '#maxlength' => 10,
    '#description' => t("The description of the setting.")
  );

The error is gone, so good for now, right?

Greetings,
Martijn

mlncn’s picture

Yes! I will fix and re-release the module when I get a chance.

summit’s picture

Still awaiting a 1.0 release.. Will the module from wsf not do it as a 1.0 release? Could you insert it within Drupal.org please?
Thanks a lot in advance for getting the time for this!

greetings,
Martijn