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

Form API, subform images and links

Hi all,

I'm working on a drupal 5 module, and would like to create multiple forms on one page. I found a reference in the forums where somebody else asked, but saw no resolution other than "I hacked it to work and it was not pretty".

Is this possible?

Another question: if not multiple forms per page I can just put a link to a new page... but I cannot figure out, in the forms api, how to create a link. (there are textboxes and checkboxes, etc, but I dont see a "link" type). Is there one? Anyway to create one?

WYSIWYG editors (TinyMCE, widgEditor) deletes all text.

I have tried both wysiwyg editors, and they allow me to create the body of my page, and format it as I like. As soon as I click "submit" all the text dissappears in the view body. If I click edit, all the text I typed is gone!
I have created a new input format filter and named it "rich-text" and turned all filters off, but I just can't get the wysiwyg editor to 'save' my text. Please, any help would be very much appreciated!

www.qheac.com

Taxonomy Hide ported to 4.7.5

Hello community,

i ported the core functionality of 'taxonomy hide' to 4.7.5 (don't know if it's backward compatible, but it should). What is missing so far is the grouping function.


function taxonomy_hide_help($section) {
$output = '';
switch ($section) {
case 'admin/modules#description':
$output = t('An interface for manipulating with vocabulary term list in node view.');
break;
}
return $output;
}
function taxonomy_hide_settings() {
if (!module_exist('taxonomy')) {
$output = l(t('Taxonomy module not enabled'), 'admin/modules');
}
else {
$options = array();
$options[0] = t('None');
foreach (taxonomy_get_vocabularies() as $vid => $vocs) {
$options[$vid] = $vocs->name;
}
$form['taxonomy_hide'] = array(
'#type' => 'select',
'#multiple' => true,
'#title' => t('Select the vocabularies which are hidden from display in nodes'),
'#default_value' => variable_get('taxonomy_hide', array()),
'#options' => $options,
'#description' => t('Select the Vocabularies which terms should not show up in nodes.'),
);
}
return $form;
}
function taxonomy_hide_nodeapi(&$node, $op, $arg = 0, $arg2 = 0) {
if (!module_exist('taxonomy')) {
return;
}
switch ($op) {
case 'view':
$hidden = variable_get('taxonomy_hide', array());

IPBlink - Drupal to Invision Power Board link... nearly ready!

Hi all!

Just thought i'd post a little note letting people know that my first ever Drupal module (i've only recently started using Drupal), will soon be ready for upload!

Using the Drupal FUDforum module as inspiration, IPBlink allows users to log in to your Drupal site using an Invision Power Board database as the back end. Email and Password changes are automatically synced between the two, as are a few other additional custom fields.

Custom blocks for forum statistics, latest forum posts and online users are already working, with top x posters, latest downloads and a number of other blocks to follow shortly.

You can see the system up and running on my test area at http://www.MoDaCo.com/drupal - this is integrating with my www.MoDaCo.com back end. The system will also be up and running on my blog (http://www.PaulOBrien.net) in the near future.

A couple of things I want to fix before I make the first development release (and I don't actually know how I release a module?):

- Pass new user signups back from Drupal to IPB
- Only show recent topics from 'public' areas (currently shows from everywhere)
- Reset to 'validating' of IPB account when e-mail is changed

Other planned features before a 1.0 release

Event module webcal link

The Event module includes webcal:// links for downloading icals of events. This would be a useful feature, but the webcal URI isn't supported by all platforms. Does anyone have a solution for either (1) making the ical downloadable via http, or (2) stripping the links from the event display?

(It is also possible I am just thick and am missing something. If there is some other solution to making events downloadable as icals, that would of course be of interest, too.)

Thanks!

Pages

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