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

Is there a way to add tabs without using the menu hook?

Is there a way to create a tab that maps to a node without adding it via a menu hook?

I'm working on the multiforms module which creates a multi-page form node type. I'd like to see if I can map a form created with it to a tab in a user's profile. I could add functionality in my module to do this, but maybe there's a way to do it without doing that (another contributed module, for example)?

Thanks all!

Something Like "Quotes" Module

Hi,

I want something like "Quotes" module but more complicated. I use "Quotes" module in my site but I want to display sentences in another separated department in the site.

Does drupal.org have a similar one?

Thanks.

nodeapi case 'files': ??

Now i have a code like so...

function tutorial_nodeapi(&$node, $op, $teaser, $page) {
switch ($op) {
case 'load':
return db_fetch_array(db_query('SELECT parent, weight FROM {tutorial} WHERE vid = %d', $node->vid));
break;
case 'view':
if (!$teaser) {
if (isset($node->parent)) {
$path = tutorial_location($node);
// Construct the breadcrumb:
$node->breadcrumb = array(); // Overwrite the trail with a tutorial trail.
foreach ($path as $level) {
$node->breadcrumb[] = array('path' => 'node/'. $level->nid, 'title' => $level->title);
}
$node->breadcrumb[] = array('path' => 'node/'. $node->nid);

$node->content['tutorial_navigation'] = array(
'#value' => theme('tutorial_navigation', $node),
'#weight' => 100,
);

if ($page) {
menu_set_location($node->breadcrumb);
}
}
}
break;
case 'update':
if (isset($node->parent)) {
if ($node->revision) {
db_query("INSERT INTO {tutorial} (nid, vid, parent, weight) VALUES (%d, %d, %d, %d)", $node->nid, $node->vid, $node->parent, $node->weight);
}
else {

Contextual node addition

Here's the problem I'm having right now. I have a node type, which has one field "created from." Basically, this will create itself from some text in another node. Now, here's what I want to do: let users add to the "created from" field automatically.

Here's what I'm trying to do: using Javascript, when a user highlights a certain piece of text, open up a node submit form inline, in a div. The "Created From" field doesn't appear; the rest do. That way, people can create nodes in this fashion very easily.

How to change theme Color?

How to change theme color?

New Node type & inserting to DB

Hello,
I created a new node type using tutorial http://drupal.org/node/82920
I want my node by be kept in a new table, so I create it. I also made a function mymodule_insert to store my content in my database table. The problem is that content is being added to my table and to node table. How to fix it?

Pages

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