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

Feed for the Aggregator???

This seemed like a silly question to me, but I looked and couldn't find it anywhere... Is there such a thing as a feed for a feeder (aggregator)? It seems redundant, but is it possible to have a feed where someone could get all of the feeds in our aggregator in one rss feed?

How to code forms in cvs head 4.7?

Could someone explain the proper way to code forms in 4.7? Some of the modules, after upgrading, use legacy form generation code, that doesn't seem to work even after enabling the Legacy module. I can't make heads or tails out of the new code.

Specifically, I'm trying to get a checkbox. I have the following code, which almost works, but doesn't actually set the value as I need it:

function image_tab_settings() {
	 // Global Image Display Settings
	 $form['imageDisplay'] = array('#type' => 'fieldset', '#title' => t('Global Image Display Settings'));
	 $form['imageDisplay']['image_tab_globally_display_images'] = array('#type' => 'checkbox', 
	 	'#title' => t('Display images globally'), 
	 	'#return_value' => TRUE,
	 	'#default_value' => variable_get('image_tab_globally_display_images', TRUE), 
	 	'#description' => t('If checked, images may be displayed with content, although some types of content may override this setting. When not checked, no images associated with any content will ever be displayed automatically.')
	 	);
	 
	 return $form;
}

I borrowed this from the new user module (line 1167). I'm trying to set the variable 'image_tab_globally_display_images'. Instead, it always returns a check, even if it's not checked.

The user module uses '#default_value', but looking at the API for theme_checkbox($element), it looks like perhaps I should use '#value' instead. However, that doesn't work either.

I've looked for some documentation about the new way that Drupal will handle forms, but haven't found any yet. Perhaps someone could point me in the right direction.

Thanks,
Aaron

Culture Fix Web Identity & Design
Digital Folk Art (my blog)

TinyMCE shows only Simple Profile

I have used TinyMCE on my website from my computer at home.
When I log in from my computer at work I do only see the simple profile (a whole bunch of buttons are missing).
What is the meaning of this? All authenticated users have access to the advanced theme.

Andre

Yahoo Maps integrated with event.module and location.module

I saw this post on kottke.org this morning and decided to give a Yahoo maps module a shot.

Here's the first draft: Yahoo Mapping Module for Drupal. There are a lot of configuration options yet to be integrated, but it works pretty much as expected. The module requires location.module and event.module in order to plot upcoming concerts.

Best Method for Flash Data Integration

I'd like to create a module that is powered by Flash. Flash would need access to certain data from the database. What would you guys recommend for integrating the Drupal backend into flash? Would the first step be to create a SOAP module or something? Thanks.

First Module: This was too easy. I must've screwed something up....

Hello drupal folks.

I wrote my first module last night. And it seemed too easy like I probably missed something critical. It works as intended. But beings this is my first module, I would appreciate some wiser eyeballs giving it the once over.

The module is to basically provide author specific pages/feeds via ?q=author/uid or ?q=author/uid/feed

I took code from the taxonomy module and tweaked as necessary. don't know why the spacing isn't sticking oh well.

Feedback is much appreciated.

<?php
// $Id: author_page.module,v 1.0 2005/11/02 20:41:00 Thomas G. Willis thomas.g.willis at pobox.com Exp $

/**
* @file
* Provides a page for nodes by author such as ?q=author/1 or ?q=author/1/feed.
*/

/**
* Implementation of hook_help().
*/
function author_page_help($section) {
switch ($section) {
case 'admin/modules#description':
return t('Provides a page for nodes by author');
}
}

/**
* Implementation of hook_perm().
*/
/*
*don't think this is needed
function author_page_perm() {
return array('access author page');
}
*/

/**
* Implementation of hook_menu().
*/
function author_page_menu($may_cache) {
$items = array();

if ($may_cache) {
$items[] = array('path' => 'author', 'title' => t('author page'),
'callback' => 'author_view_page',
'access' => user_access('access content'),
'type' => MENU_CALLBACK);

Pages

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