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

How to create multiple nodes using a single module?

How can we create multiple nodes using a single module?

It is urgent.
Thank in advance.

Add to $user on 'load' not working

Hi

I am using 4.7-beta3 and I want to add some data to $user as its database intensive but changes very slowly so I don't want to recalculate it every time the block renders.

I added to my_user() the following:

OG module doesn't display any posts

I just installed the og.module. I created a group when logged in as admin and made a few posts to the group as admin.

When I go view the group as another user, I can't see any of the posts in the group even though I added them as public posts.

The group just says "No posts in this group.", which is not right because I just created a post in that group.

Even when I subscribe to the group as a different user, it still says "No posts in this group.".

Try Again - I want to call $term from ONE list of topics, but not the other.

I wanting to insert a banner on the top of a story, like where the title is..

Lets say I have 2 topic lists

Topic List 1
Banner 1
Banner 2 *
Banner 3

Topic List 2
Topic1
Topic2 *
Topic3
Topic4 *
Topic5

So lets say I select the one with the *'s

I want to hard code this to use the one in topic one as the banner, so I will code
<img src="http://www.pathtothebanner.com/<? php print $WHAT FOR JUST THE TOP TERM ?>"

Passing a cookie from one domain to another

Hello,

I writing a module to allow Drupal to interact with an ASP I use for advocacy campaigns (where individuals send emails to elected officials). The ASP authenticates users via an HTTP POST and returns a cookie, allowing users to browse to any advocacy page and have the fields prepopulated (name, address, etc).

Which hooks are called by module name and which are called by node name?

What I want to know is this.

Which hooks are called by module name and which are called by node name?

By which I mean, if I define multiple node types within a module using hook_node_info(), e.g

function theatre_node_info() {
  return array('show' => array('name' => t('show'), 'base' => 'show'),
    'venue' => array('name' => t('venue'), 'base' => 'venue'));
}

but the module is called theatre.module.

Pages

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