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

What Module Do I Need To Create A Form And Email The Results?

Drupal v4.7 had a forms module that provided a simple means of creating a form.
Having recently upgraded to Drupal 5.2 I don't see the same form module and haven't been able to find one that provides that function.

What module do I need to use - if it exists - to create a "form page"?

XSS Filter module

Hi folks,

I'm working on a site where I plan on having a lot of users, most of whom will be tech savvy high school students. I want to use a WYSIWYG editor for the site, but unless you use a FULL HTML filter, the text of the WYSIWYG editor will be screwed up. However with so many users, I feel the need to enhance site security.

So I propose a module to allow only text that could have been produced within the confines of a WYSIWYG editor. I also would like greater ability to control which HTML elements are allowed, and what attributes are allowed for those elements.

One of the problems with this solution is that in order for most WYSIWYG editors to work properly, they need to include a span to wrap around various parts of the text with a style attribute. This website:

http://jeremiahgrossman.blogspot.com/2007/07/attribute-based-cross-site-...

suggests that style attributes can be dangerous, and need special treatment. I'm not sure how to implement this treatment for attributes.

The other issue is that I need to create a giant array (see below) of possible xhtml tags and their possible attributes. From this array, I'll build a form where an admin can specify exactly which html tags to allow and which attributes within the tags.

Image field in hook_form

Is there anything I can use like this?

$form['main_image'] = array(
'#type' => 'imagefield',

Or something similar to handle image uploads? I have Imagefield, Image Attach, Image Cache, and all kinds of modules at my disposal. I'd rather avoid having to manually add image fields through the CCK admin.

module ephemerides

Hi, for less of a month I migrated my site in php-nuke to Drupal 5,2, until now I could find modules for everything what had in my previous site, except for the events (ephemerides) that I have not found anything, reason why I looked for does not exist no module of ephemerides, but it would be possible to be modified some (or perhaps to be created) to be able to show a block with the events.

Sorry for my "spanglish" (the culprit is google translate :-D )

Regards, Cauly

help me construct a views argument handler for my module

I'm creating a module that provides a view which should give me a list of review nodes when I provide it with a URL argument for the location of the restaurant. The review nodes are linked to the restaurant nodes by way of a CCK nodereference field for the restaurant nid. So when someone creates a review, they use a dropdown list to select the restuarant. The restaurant node has a taxonomy term for location. It's easy to pull up a list of restaurants by location by passing the location as an argument in the URL. Since the review table holds the nid of the restaurant and the term_node table also holds the nid of each restaurant related to the term, I should be able to construct a restaurantreview_views.inc that relates reviews to locations by way of the restaurant nid. Here's my code so far, but I'm really unsure that I understand what I'm doing:


<?php
/*$Id: reviewlocation_views.inc $*/

function reviewlocation_views_tables() {
$tables['content_type_review'] = array(
'name' => 'content_type_review',
/*'provider' => 'internal',*/
'join' => array(
'type' => 'inner',
'left' => array(
'table' => 'term_node',
'field' => 'nid'
),
'right' => array(
'field' => 'field_restaurant_nid'
)
),

);

$tables['term_data'] = array(
"name" => "term_data",
"join" => array(

Simple module, but php won't execute for NodeQueue

Multi site install using NodeQueue, but I want to put the NodeQueue code into another module instead of a standalone block, to make managment easier across all the sites. This appears to be very simple, but I can't see what I'm missing.

Admin/settings allows the admin to put the NodeQueue php into the settings field, but the block returns that code as text and does not execute it.

The variable phpvariable holds this code: nodequeue_nodes(1);

Pages

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