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

Input Formats and Acidfree nodes

I've recently installed the latest 4.7.x Acidfree and drupal 4.7.3 (I have several Drupal sites). Is there a reason no input formats are showing when adding or editing Acidfree node text fields? I've never had to specifically apply input formats to content types before. Does that have to be done now?

It's kind of annoying not being able to format descriptions for albums and images in the galleries.

Thanks!

Clean install of CCK on Drupal 4.7.3 generating errors

I have completed a clean install of drupal on a test server at my employment (after successful installs locally on a windows machine) but as soon as I try to install either the ecommerce module or the CCK module, I receive the error below:

CAPTURING %count AS A VARIABLE

Hello:

I'm working on the creation of a module and I'm hoping I can get a quick answer to the following:

ON LINE 102 of statistics.module is the following line of code:

$links[] = format_plural($statistics['totalcount'], '1 read', '%count reads');

I have one very simple request:

How do I capture the "%count" as a variable to hold the number of "reads" as a numerical value and have it update like the above "%count" each time a user views a blog post.

Overriding node deletion

I want to hide nodes that a user deletes instead of deleting them from the database. The delete hook for my custom node type (from my testing) doesn't seem to be the correct spot to override deletion. I put the following code in my module and the node was still deleted from the database.

making user profile the first thing a user sees when he logs in

I have tried a few times to figure out how to make the user profile view the first page an authenticated user sees when he/she logs in. Any ideas on how I can do this?
Note that I have made my own version of the user profile using the override and the new user_profile.tpl.php.

Help anyone, please...

How to theme form fields in a table?

I want to theme a form so that several fields inside a fieldset appear in tabular form - but what is the best way to do this? I have successfully achieved this effect before by using the form theme function, with code that looks like this:

Pages

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