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

Should I use a node based module?

For my module I want to display a page containing a list of "items".
(The page only displays a list of "items" that were created by the user).
I want each "item" in the list to be clickable - When an item is clicked I want to display editable fields - the user can update their "items" fields.

My question is, can I and should I do this using a node based module?
Do modules have to be based on nodes?

Thanks,
David

problem with drupal_get_breadcrumb()

Hi

I'm trying to write a module that does some additional work with nodes when displayed. I'm using the hook_nodeapi() to access the node as it's about to be displayed.

One of the things I want it the breadcrumb array. So, in my hook, I call drupal_get_breadcrumb() to actually get it. However, it seems to just set the live breadcrumb to "Home" and I loose the breadcrumb.

Moderation Queue and revisions - leave last approved revision visible

I have a website configured were users in "publishers" role can create/edit content and "editors" can approve it for display. If a "publisher" edits a node, a new revision is automatically made and the node is unpublished and placed back in the moderation queue for "editors" to approve.

The problem is when a vistor to the website tries to view a node that was once approved in the past, but has since been edited and moved back to the moderation queue they see the ACCESS DENIED screen.

Problem with S_SESSION

I'm creating a new module.
In a part of my newmodule.module I have a array that I have to sent to a file php.

For this reason I do in newmodule.module:
$_SESSION['array']=$b;

$b is the array generated for my module.

What is the code in file php for capture $_SESSION['array']?

I do a simple file php for view the result of the recovery of $_SESSION['array'] but it is empty.
The code of file php is:

Views problem after RC3 and Views upgrade for displaying custom nodes

Hi

I thought I had Views figured out but then I upgraded to RC3 and upgrade the Views module along with it. Now my Views which used to work just give me a "Page not found" error. I did update the database for the Views module and I did enable views_ui which wasn't around with the version I was using. I think that this is all fine and a simple view I created does work (using Node filters etc.).

I have a custom node type which has a field containing a uid, its the id of a user who had to approve something. I want to list all the nodes where the current user is the person who approved them. I have been through this before but I can't figure it out. I read the documentation and I think I am doing it correctly although its clear I am not).

Here is my code:

<?php
function fhsstadmin_views_tables() {
$tables['fhsstadmin_mediation'] = array(
"name" => "fhsstadmin_mediation",
"join" => array(
"left" => array(
"table" => "node",
"field" => "nid"
),
"right" => array(
"field" => "nid"
),
),
"fields" => array(
"mediatoruid" => array(
'name' => "Mediator ID",
'sortable' => true,
'mediatoruid' => "mediatoruid",
'addlfields' => array("mediatoruid")
),
"evaluid" => array(
'name' => "Mediator Eval ID",
'sortable' => true,
'evaluid' => "evaluid",

"Blog this"

Hello all,

This may have already been discussed earlier. But I could not find any reference.

There will be three types of contents on my site-
a) News, b)Articles, and c) Blog

I would like to provide a link to all the news and stories- "blog this". Users can click this link and write a blog on the selected news/article.

Appreciate if you coould point me to something similar. Pointer to module, code or even a discussion will be helpful.

Thanks.

Pages

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