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

Webform and Forms running totals

Hey there

I have been plugging away with webform and the forms/survey modules which are both great but I need something inbetween the two. Webform has more of the features I am looking for but forms allows value substitution below is kinda what I am after:

I am generating a questionnaire with a number of questions with yes, no, maybe type answers. Each answer needs to have a numeric equivalent ie

Yes(2) No(0) maybe(1)
or
Joe(1) Jane(1) David(1) None(0)

Simplenews and CiviCRM

Hello folks,

I'm in the middle of setting up a newsletter environment, and I'm finding CiviMail rediculously complicated to set up. Yet, I would like to be able to easily send to a particular CiviCRM group, and enjoy all the benefits of the signups. My site signs people up for the newsletter by putting them in a certain group.

Module Development Help

I am trying to create a module that will be used to manage a listing of stores. Currently, I am able to add and list the stores out just fine. When the stores are listed out, the necessary information is displayed with an edit link. When I click on the edit link, I am taken back to the add stores form, instead of seeing the text 'Edit Stores Here'. Anybody see what it is I'm doing wrong. Any help would be greatly appreciated.

<?php
// $Id: stores.module,v 1.0 2006/11/16 15:59:37 Alan Exp $

function stores_help($section) {
switch ($section) {
case 'admin/modules#description':
return t('Manage Stores');
case 'admin/settings/stores':
return t('Gives administrators the ability to manage store listings');
}
}

function stores_access($op, $node) {
if ($op == 'view' && ( user_access('view Stores') || user_access('administer Stores') ) )
return TRUE;
}

function stores_perm() {
return array('administer Stores', 'view Stores');
}

function stores_menu($may_cache){
$items = array();

if ($may_cache) {
$items[] = array(
'path' => 'admin/stores',
'title' => t('Stores'),
'callback' => 'stores_administration',
'access' => user_access('administer Stores')
);
$items[] = array(
'path' => 'admin/stores/add',
'title' => t('add stores'),
'callback' => 'stores_administration',
'access' => user_access('administer Stores'),

adding a select field of type multiple to flexinode settings

I have defined a multiple select form field to store configuration settings for each of my two flexinode types. They are stored as variable.

I have used alter_form to add that field. This seems to be working fine. However the selected values are not stored correctly.

It stores the array index instead of array values. Array values are actually the index value for select field.

Here is select field html. I have removed for related info to make it clear.

Og_Forum Categories

I am a fairly new user of Drupal. I noticed that the og_forum module auto populates the Categories->Forums combobox on the forums page with a list of group related categories when trying to add, or edit a forum. I am trying to have it restrict this combobox to only the name of the category for the current group that is selected. For example if I am in a group named "Test" then I would like this combox to list only the "Test" category when trying to edit, or add forums. I am confused about where, or how to implement this functionality?

How to make a form output something other than a message?

Hi everybody,

I am writing a module and a part of it is a form that allows the user to form a query: He or she can choose from some pop-ups the information she wants to view, and on submitting the form, she is going to see the result of the query AND the form again.

How can I achieve something like this with the Drupal-4.7 Forms-API?

What I do is the following: In my module 'test', I register a menu-item with a callback:

Pages

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