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

modules serving data from external non-MYSQL sources

Hello,

I am developing a node module that involves access to a different type of database using a different set of database access functions. Certain important node hooks ask for a return value that is a query result resource. The problem would be solved if there is a way to return a query result resource that imitates the expected result resource? Is there a standard advised way to do this?

Alternatively, is there any way to get around using a query result resource to return data, so that the module hooks can provide data from other sources?

Move from weblink to flexinode

Hello everyone,

The short story: Please help me convert all my 4.6 weblink nodes to flexinodes.

The longer explanation: During the past few years, the users on one of my sites accumulated a few hundreds links. We are using the weblink module to manage them. Since the 4.6 upgrade, the weblink module no longer has any presentation features. This makes the module in itself not very useful, and the directory module doesn't inspire me in any way. I would like to convert the entire weblink collection to flexinodes, without loosing data and without changing the URL's.

Adjusting inline code for (img_assist).. Mod caching issue?

I'm using drupal 4.6 with a modified Friendselectric theme. With img_assist, when i specify left or right alignment, it places the image in the expected place, but it places it with the *rest* of the page wrapping around it. What this means is that if i insert an image into an article that is only a few lines long, on the page that lists the stories, you'll have stories 2,3,4 all wrapping around the image, destroying the entire layout.

Here's a sketchy diagram to display what i mean :
The image below (as #) belongs only to story one, and should not have story 2 anywhere near it, but this is the result)

Story 1 : The image i took :
|####| This was taken from a camera!
|####|
|####| Story 2 : Damn wrapping issues!
|####| that gets wrapped up with story 1's image
and then it causes the bottom to finnally hit a new line

Story 3 : starts where it should be on a new line by itself.
This is story 3's content.

So i figured a duct-tape fix would be to simply disable the alignment feature, and just allow the image to sit on the page (not floated, or wrapped). I did this by deleting the

, uploaded.. and go no result.

Everytime i modify the code.. i get no results. I adjust the code, upload, exact same outputted source. I delete the content of the entire module.. and it stops working (as it should), which lets me know im working with the right file. Make my changes, upload and not a single change. I deleted the entire image output function and no change either.

How to modify the value of $node->body?

Hi! I'm creating a module for faqs. I was thinking that it would be easy to store the data in the node table by making the body look like:

<question>....</question><answer>...</answer>

I would then have two separate entry blocks, and when the data is saved to the database, I would modify the body to properly format the data. I've written most of the stuff, but how do I tell Drupal what $node->body should be? hook_insert/_update don't have a modifiable $node passed to them (and the body field may already have been written?).

Thanks,
Ricky

Moderation system integration with OrganicGroups

The DigitalBicycle Project is working to develop a Drupal module that would allow site-wide moderation of content in a uniform and transparent manner. We define moderation as the process of granting or removing access to nodes, rather than of promoting or demoting content to positions of attention or obscurity. We are currently developing a moderately sized (several thousand user) community hub with extensive Groups functionality.

Please make note that the following is not a spec. Rather this is a collection of ideas that our developers have come up with and are making available in order to elicit feedback from the community. We hope that this will help ensure that the development of a moderation module benefits more than just the DigitalBicycle. We have not yet determined whether development will take place in house or be sponsored, but any ideas or support would be greatly appreciated.

We would like this module to have the following attributes:

Extensibility:
The workflow.module exemplifies the level of extensibility we require in order to fine tune moderation to different situations. Workflow.module works in concert with actions.module and enables:
- powerful creation and customization of actions
- arbitrary creation of moderation actions (publish, unpublish, send emails, interaction with custom modules such as file sharing, a points system or custom featured content)

Form_Select, multiple selections

Does anyone have an example of using a select box (form_select), multiselect enabled in a module? Beyond the obvious of setting the argument to true, how do you specify the selected values, and how do you access them from other hooks? An example would show all of this, but I can't seem to find one.
I give you thanks in advance, -Rob

Pages

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