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

Webform - adding `keep copy to user' and print PDF

I am proposing WEBFORM.module for 4.7.2 to have the following capabilities:

1. Automatically assign an ID for future reference, for the user AND admin

2. User (anonymous or registered user) can keep a copy, with the ID and his inputs * whatever texts and options selected

3. Print it either formatted HTML, or PDF - important is the ID and the inputs

Currently I can only think of doing this by a JSP script. If JSP can do this, I hope the WEBFORM can add the extra function (auto reference ID, copy of inputs and ID, print)

Speaking URL's

I wrote a small snippet of code for generating automatic "speaking URL's" for taxonomy terms.
Currently this is located in settings.php and it works nice for my personal page (http://www.narres.com/).

Module used to manage modules

Hi !!

I'd like to manage projects like Drupal.org team managed the modules. I mean with bug, issues, ...
I've installed the Project Module for the 4.6.5 but I don't see the same organisation.

Can someone explain me how to have something like the site ?

Thanks in advance !

variable_get returns all values from form instead of what was selected?

So I've been developing a module, which automatically-assigns roles based on taxonomy terms in user profiles. I can do that fine - but I wanted to add a settings page to the module that allows you to choose which vocabularies to assign roles for.

In the _settings hook, there is this code:


$vocabularies = array();
foreach (module_invoke('taxonomy', 'get_vocabularies') as $vocabulary) {
  $vocabularies[$vocabulary->vid] = $vocabulary->name;
}
$form['autorole_vocab_select'] = array('#type' => 'checkboxes', 
																				     '#title' => t('Vocabularies to auto-generate roles for'),
																					 '#default_value' => variable_get('autorole_vocab_select', 1),
																					 '#options' => $vocabularies,
																					 '#description' => t('Which vocabularies to auto-generate roles for'));
}

If I understand correctly, variable_get['autorole_vocab_select'] should contain the values that were selected in the settings page (and the database table variables reflects this correctly as well).

in the function that assigns the roles, this code is present:

 $allowed = variable_get('autorole_vocab_select', 'none');
 
 foreach($allowed as $vocab) {
 	$terms[] = module_invoke('taxonomy','taxonomy_get_tree', $vocab->vid);
 	}

It then checks that the field type the function got passed is a vocabulary, and checks that the name of it is in $terms - which should contain the vocab terms under the vocabularies that were selected, however if any vocabulary terms were selected, it acts as if all of them were selected. If none are selected it works as would be expected. Since the variable in the database table "variables" is correct, I assume that the problem must be in the $allowed = variable_get('autorole_vocab_select', 'none');call.

Will tip for assistance - Widget Inventory on User Account Page + Search

Hello, I'm working on a new Drupal site and I need some help.

I've been searching around and learning about the CCK and Flexinode, as well as the Views module, but I think I need a hand with implementation to do what I'm trying to do here.

Here is what I need:

Submit module to patch queue?

I created this module -> http://drupal.org/node/71555 and I was just wondering how to get it into the queue for someone to review?

cheers
alynner

Pages

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