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

THIS FORUM IS NOT FOR "What module..." or module support questions-- it's for module development and code related questions.

The module development and code questions forum is intended to aid those who are developing modules or writing code for Drupal.

Please note that this forum is also not intended for "Is there a module that does..." or "I need help with module x..." questions. It's also not a place to ask developers to write your code for you. Please respect this.

Please do not post general discussions intended to target module developers. If the question you have isn't specifically related to writing a drupal module, please post it in a more appropriate forum.

  • If you you have drupal installed already and are seeking a module that does a specific task, have a question about a specific module and what it does or if it will fit your use case, please place your questions in the Post installation forum.
  • If you have a problem or question about a specific module, you should create an issue in the module's issue queue (after checking for an existing issue first).
  • If you don't have drupal installed yet, please place your questions in the Before you start forum.

users status = 'active" after run cron or presave

I am using mapping (drupal/salesforce) and when i create user in salesforce, it created with status blocked, i would like to change that, so i find two possibilities hook_cron() or hook_presave_user(), but i don't know how can i modify that i try
'status' => '1',
->condition('uid', $account->uid)
but nothing change, i need help

Adding background color to table rows


I was wondering if it is possible to change the background color of a table row.

I want to display certificate files, and if that certificate is going to expire in longer than 30 days the color green would be good. If it is less then 30 days color orange and if it's expired color red.

I tried finding it on the internet but I can't find anything like this.

This is how my current column data looks like.

_field_invoke with form operation?

From api document of functiojn _field_invoke, we see there said one option for $op is form,
so is there a function named hook_field_form? or what s the meaning of form operation?

Can some one help us to make it clear.
Thanks a lot.

$entity->$field_name non unique name ?

Comments in this function:

Having separate "live" (prod) and development/staging versions of drupal


I'm trying to rack my brain about how to approach segmenting a drupal site into dev/staging and live/production versions.

Right now I have a script that rsync's files and basically clones the database from dev -> production.

After subsequent / recent changes, I now have to avoid copying specific content types. So a straight database dump -> database import is no longer viable.


Subscribe with RSS Subscribe to RSS - Module Development and Code Questions