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

What hook to use?

I'm writing an implementation of jsDomenu for use with the menu tree not the taxanomy tree that the current jsdomenu implementation works with.
I got it to work as extended theme functionality, but I'm totally stuck now that I'm trying to make it a module.

To build the javascript code my module depends on the 'visible' part of the array from the menu_get_menu() function.
So my question is: What hook to use that is called early enough for inserting javascript code with drupal_set_html_head() and late enough to get the content of $menu['visible']

Can taxonomy_access ignore some vocabularies?

I have many vocabularies, but only one (visibility:internal|external|both) that affects whether access should be given to a node.

Am I misreading taxonomy_access?
... or does this situation cause two problems:
1. the 'edit category permissions' page is huge
2. the resulting permissions can only work if visibility is the *only* tag added to a node. (because if you add another tag, the node permissions are affected by it)

Node type module - Display All advice needed

Hi

I am writing my first node type module and have been trying to figure out how to display all nodes. I am thinking in terms of the audio or video module ie; mysite.com/audio displays the latest audio nodes.

I don't have a problem with coding the routines, it is merely how this symbolic link is defined? Looking at video.modules it looks as if it relies on a combination of video_page() and the menu hook, but I've had no success with this. I know I must be missing something simple :)

any pointers appreciated

Andy

iCal, WebDav, phpicalendar module --how-to?

i'd like to see phpicalendar on a webdav enabled server incorporated into a drupal module?

so, how to do it?

Clear Comment module

Hi. Is it possible to delete from comment module that "
Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anonymous (not verified) said," and that settings- three select areas and one button. Look here: http://krzyzak.net/new/drupal-org#comment if you want to look what i mean
Sorry for language errors, english isn`t my native language.

How do I use a template when creating a module?

What I mean is that I don't like typing html in the php print statements, I think that creates a mess. I would rather have a smarty template that I could read in. I am already using smarty themes, but how could I use a template for my module. For instance let's say I generate some names or something and have a template called index.tpl. It might look like this:

//index.tpl

Name 1: {$name1}

Name 2: {$name2}

Name 3: {$name3}

Pages

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