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

Odd menu behaviour - ?!?!?

Hi,

OK, this is an odd one.
I developed a custom module. I added some menu entries in the tab.
So, node_article.module contains:


function node_article_menu($may_cache){
global $user;
$items = array();

// CACHABLE ENTRIES
if ($may_cache) {

// Administration entry. This makes sure the module can be configured
// from Drupal's "admin" link (new in Drupal 5.X)
$items[] = array(
'path' => 'admin/settings/node_article',
'title' => t('Peer review article module'),
'description' => t('Settings for the peer review article'),
'callback' => 'drupal_get_form',
'callback arguments' => array('node_article_admin_settings'),
'access' => user_access('administer site configuration'),
'type' => MENU_NORMAL_ITEM);

$items[] = array(
'path' => "pending_articless",
'title' => t('Pending articles'),
'callback' => 'node_article_pending_articles',

user_access('edit articles') ,
'type' => MENU_NORMAL_ITEM,
'weight' => 2);

// NON-CACHABLE ENTRIES

} else {

if (arg(0) == 'node' && is_numeric(arg(1))) {

$node = node_load(arg(1));

// The node can be loaded -- all OK
if ($node->nid) {

// I don't understand why we need this, but
// we do or these entries will come up for every single

How many level which Tab support?

Sorry for this confuse subject, i have create tab and sub tab, but failed to create sub-sub tab,
for ex.

--A1
--A2

------B1
------------C1
------------C2

------B2
------------C1
------------C2

--A3

please note that level A is not root, it is top level tab which under primary
Thx in advance

IMPORTANT: please help with module

Hello,

At Free Software Magazine, we've just rolled out Drupal 5. We have a custom module node_article.module, which allows you to assign articles and send them off to a chosed editor and copyeditor. We are just about to apply to have it listed as a Drupal module.

HOWEVER, whenever I preview a node of type node_article, I get this message:

* warning: Invalid argument supplied for foreach() in /home/drupal5/htdocs/modules/node/node.module on line 513.
* warning: implode() [function.implode]: Bad arguments. in /home/drupal5/htdocs/modules/node/node.module on line 517.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM master_node n INNER JOIN master_users u ON u.uid = n.uid INNER JOIN master_node_revisions r ON r.vid = n.vid WHERE in /home/drupal5/htdocs/includes/database.mysql.inc on line 172.

BUT, it seems to work fine otherwise. Even creating the module seems to work.

THe bit of code reads:

$cachable = ($revision == NULL);
$arguments = array();
if (is_numeric($param)) {

Makeing a Storys Page

hiya everyone im trying to find a modual that will allow my users to upload a story and it display on the site in much the same way it did on my old site.

http://jennifersplaygroup.co.uk/?q=storys it sould look like this but bee intergrated and have diffrent colour stripes like itunes and some other parts of the site like the forum look. and when a user wants to upload a story ether a popup or a upload page sould be dissplayed.

creating a form

Hi
Can I create an online form for being mailed by Drupal? Could you please help me with a direct link? because I've got lost at drupal.org
Thanks

How do i go about making this invite module

I am currently working on a social networking site and this is the module i want to make
An invite module which can send invites to that persons orkut friends.
How difficult will this be and can will there be any problems that i might face while/after making this module?Is it possible
Thanks

P.S: For those who don't know..orkut is a social networking site . www.orkut.com

Pages

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