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

Can I disable a module through the database?

I disabled one required module from the e-commerce package by accident and now the site doesn't work! Can I re-enable it through a field in the database?

-I answered my own question! Status field in system table set to '1' for active and '0' for inactive.

Here is the SQL for the product.module (edit for the module you are trying enable)
UPDATE `system` SET `status` = '1' WHERE CONVERT( `filename` USING utf8 ) = 'modules/ecommerce/product/product.module' LIMIT 1 ;

-Tom

Q: Track number of views for a node?

Is there a way I can display the number of views a node has had? Is there some type of data for this stored in the database?

Thank you :)

Q: Display topic link in last post on forums?

Is there a way I can display a link to the last post in my forum? Right now it says something like:

2 hours 48 min ago
by user

where I want it to say:

topic title
2 hours 48 min ago
by user

Is there a way I could do this?

Thanks!

Wich variable retrieve the original path ?

I use html code to replace the 'edit' track' and 'view' tabs with images.
But it doesn't work if I use the path rewrite module.

Wich variable retrieve the original path ?

I need to use something like ./node/94 and not ./webzine/daedelus to complete it with /edit or /track

<a href="/<?php print $node_url ?>/edit" title="edit this node"><img src="/my_edit_icon.png" alt="edit" title="Edit the current node" /> ?>

Do you understand what I mean ?
:)

Thanks. I Hope you can help me :)

How to create a callback function that returns a file?

Hello,

How can I create a callback function that, rather than returning a page, sends a file (in this case, a PDF) to the user?

Thanks a lot!

Merc.

Best way to extend the user help pages? - help_page()

I'd actually like to write up some useful user documentation, and it makes sense to place it under the existing admin/help area, and cross-reference to it from my actual interfaces.

Looking at help_page() I see I can't really extend much deeper with my hook_help() function. I wanted to create a page /admin/help/relationship/predicates as a subsection of my user help, but that's not going to work.

Pages

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