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

Weird issue with hook_comment not getting op insert or update

I'm working on a site for a client where I needed to write some special code to do some moderation workflow on comments. Got it working just fine on my test site, which is mostly stock 4.7 with the changes I've made for them. Then when I put it on my dev site provided by the client (which has enough custom code that I can't replicate in my test site), it no longer works.

Outline problem for Book Module - Please Help

I wanted to create a number of content types similar to a book (in my case for an academic website, these were Thesis, Reports, Papers). So i copied the book module and edited its text by replacing all the words "book" to "Thesis" or "Report" or "Paper". This worked well but as a result i have now got the links for "add child page" and "Printer-friendly version" appearing 4 times below my page. This would have been a minor problem of aesthetics if only all of these links would point to the content type of the node...

'#options' array from query sql

Hi everybody,

i need to fill a select item in a form, using as source for the list some data got from an sql query (i need to specify is the value and which is the label)

I'm still stuck on the point of splitting the array generation and the item declaration on the $form array :(

In other words, the only way i can make select item working is in this way:

'#options' => array(1,2,3,4,5,6,7,8,9,10),

but i need to slipt this, i cannot make the sql-based array there...

Someone can help me?

Set correct path for thumbnailer

Hello,

I am using Video ffmpeg Helper.

In Video Settings -> Video ffmpeg Helper -> I am setting FFmpeg executable path for Automatic video thumbnailing.

If I check box Auto thumbnail for videos and save configuration than it doesn't work.
I shows me error "Set correct path for thumbnailer"

If anyone knows the solution for this than please update.

Thank You
Sachadmin

Computed Role Membership

Hi!

I'm trying to write a COPPA compliance module for our system. Basically the goal of which is to have a automated role (similar to authenticated user) callled "Under 13" or something like that. It will be computed from their profile b-day. Modules that require COPPA compliance (chat etc) then can toggled on/off for under 13 users.

I'm trying to write this in a modular way, but I am not having lucking finding a way to do that. So far my 'best bet' is modifying user_roles after creating the under13 role. HARDLY the elegant solution I'd wish for.

Set menu location

Hello All!
I want to set explicitly a menu location depending on node type. I used set_active_item() function but it rewrites $_GET['q']. Is there a way to do this without overwriting $_GET['q']? I suppose I can use template.php to implement there a _menu_item_link() but maybe there are some better solutions?

Thanks in advance.

Pages

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