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

customize add node page for new node type

Hi,
I created a new node type, and have a few custom fields on the 'add' node page. I would like to disable some of the options on this add page that don't make sense for my node type. How do I do that? In particular I don't want the comments, menu, path, and attachments sections to even show for this node type. Is there a way to make that happen?

Thanks,

Current Jobs Page - Need Help

Hey all,

Drupal newb here. I'm working on the internal website for my company and I wanted to get some advice. I am trying to implement a "Current Jobs" page so that the company can track installation jobs and certain users can change the status of each job. I guess what I'm asking is what do you think would be the best way to implement this.

Multiple module instances

Is it possible to have a module that is installed multiple times on the same Drupal site? We are currently using a bibliography module and we would like to have two instances of the module. How would I go about this?

Thanks,
Kyle

Annotate - Pro Drupal Dev Book : .install question

Hello,

I am going through the examples in the new Pro Drupal Dev. book and can get the example Annotate module to show up, but I cannot get the annotate.install function to run. No table is being built. I have installed other modules and they worked fine, just not this one.

I also checked a few other small modules for reference and they seem to all follow the same flow and all haev the same permissions.

Any even tried this?

I am not even getting the error/status messages.

Here is the code I am using:

----------------------------------

<?php
// $Id$

function annotate_install() {
drupal_set_message(t('Beginning installation of annotate module.'));
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {annotations} (
uid int(21) NOT NULL default 0,
nid int(21) NOT NULL default 0,
note longtext NOT NULL,
timestamp int(11) NOT NULL default 0,
PRIMARY KEY (uid, nid)
) /*!40100 DEFAULT CHARACTER SET utf8 */;");
$success = TRUE;
break;

default:
drupal_set_message(t('Unsupported database.'));
}

if ($success) {
drupal_set_message(t('The module installed tables successfully.'));
}
else {
drupal_set_message(t('The installation of the annotate module was unsuccessful.'),'error');

problem in popup

in the internet explorer only the popup blocker block the open the new window, in firefox will allow the link to a new window

so please help me to find the real solution to that problem

Define parent item in hook_menu()

Hello

I would like to create a dynamic menu in function of values which are contain in the profile_values table. I'm searching a way to define the parent item in hook_menu where I would like to place this item. I cannot do this manually because I don't know which values will be in the Database. By default all item go into the default menu "Navigation" and I would like to place it in a custom menu "Application".

This code display the item in "Navigation":

Pages

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