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

example of using pager_query()

Can anyone show me an example how to use pager_query() which is more detail than the example in http://api.drupal.org/api/HEAD/function/pager_query.

NodeAPI Clarification Question

In my own module, I need to add a new supporting node of a different type during the hook_submit() function of a new node just being created.

In the following piece of code, I understand would be placed in the comment.module file, for use by other modules to insert a new comment. However, how exactly does this get called from another module?

For example, I see this (the below code is just an example) being called from a hook_submit() function from the module I'm developing. Would that be a correct assumption as a possibility?

TinyMCE Not Working Correctly

I successfully installed TinyMCE and am able to use the WYSIWYG just fine when creating new content such as stories and pages but when I try to edit the story/page I just created, along with ones I created prior to installing TinyMCE, the WYSIWYG will not appear. I can hard code it into my page.tpl.php and it shows up just fine on every editing page. However, when I rely on the non hardcoded version of my page.tpl.php it won't show on any story/page edit section. It works fine for commenting on every page/story though which is weird.

Co-registration

Hey everyone,

I have recently began working with Drupal 5 and I'm really impressed thus far. I have read a few books and gotten our site architecture to a point that I am very happy.
There is one last piece that I need to integrate and I would like to get some insight on the best way to approach this.

Changing Nicelinks paths to support a vbDrupal site

I have nicelinks working well on a Drupal 4.7.6.3 site, but would like to tweak it a bit to support my environment. My Drupal is actually vbDrupal and I've noticed that the Drupal side of things is having difficulty locating certain files due to the way the site structure is customized. (Example: forum/modules/nicelinks/nicelinks.js not found).

running cron as a user

I have a cron function set up to add content automatically. This works wonderfully if I run it myself (using the cron url) but the content is not added if it is run anonymously.

Is there a way to temporarily (via code) become a user just for the specific function and then unload the $user object once it is finished?

I have no desire to change permissions to allow anonymous users to add content.

Pages

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