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

store the name or the id ?

Hi,
I am writing a module which limits node count of a specified content type by role. my question is

1. should i store the name of the role or the id of a role in my table?

Thankyou

Shall we integrate SMS Module in DRUPAL

Hai,
I am Ramesh.I want to integrate SMS Module in DRUPAL.
Thank you.

rsvp + groups + buddylist

i need to extend the RSVP modul so that i can send the invitation to a total group or/and to my buddylist.
there should be a checkbox or something at the rsvp form to add a group or select some friends from my buddylist.
it is not easy for the user to enter everytime all the email or usernames into the invitationbox by hand.

has anyone an idea how to realize this? how can i start

hook_menu() - 1 set of items get's duplicated

Hi everyone!

I'm working on a small module for my company intranet purposes, and one of the functions I need is an additional Menu Tab on specific node type right along with the View and Edit tabs. That particular tab (we'll call it Follow Up) should also have 2 submenu tabs available as well. Should look like this (assuming Follow Up tab is active):

| View | Edit | >Follow Up |
| >Automatic Campaigns | Letters|

But here is what I get:

| View | Edit | >Follow Up |
| >Automatic Campaigns | Letters|
| >Automatic Campaigns | Letters|

The buttons work correctly and everything is fine beside the fact that they are duplicated.
Here is my hook_menu() code:
<?php
function followup_menu($may_cache) {
$items = array();

if ($may_cache) {

$items[] = array(
'path' => 'admin/settings/followup',
'title' => t('Follow up settings'),
'description' => t('Select content type for the Follow Up.'),
'callback' => 'drupal_get_form',
'callback arguments' => array('followup_admin_settings'),
'access' => user_access('administer site configuration')
);

}else
{
$types_to_followup = variable_get('followup_nodetypes', array('leads'));
if (!$may_cache) {
if(in_array($node->type, $types_to_followup)){

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

How can I earn money with "ad" module?

Hi
I want to earn money with ad module.
Can you known a way to integration ad module with ecommerce module ?
For example: for submitting ads, I get 2$ and for (text or image) and for banner of top FrontPage 10$ and …
Can you help me?

Pages

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