change == to OR statement (solved)

Hi,

I am not a coder but i need to change a smal line of code.

($node->field_status['und'][0]['tid'] == 2)

This basicaly says as far as i know if tid 2 i need it to say if tid = 2 OR 84

Hope any of the coders could help me out.

marquee block translation

Is there any translation for marquee block??

Views "from same artist" and entity reference

hello, i have a site on drupal 7

2 content types: ARTWORK and ARTIST...

artwork has an entity reference field called made_by which is connected to the ARTIST

below every artwork node i want to display a view (block) with all artworks made by the same artist.

I'ts pretty easy to made it with taxonomy ref. but i really can't make it with entity reference... i tried to add a relationship and then use it with a NID contextual filter but won't work

what's the right procedure?

THANKS

top-level form from hook_field_attach_form

I'm doing some custom validation using hook_field_attach_form. When field_group module is active and configured for the form I want to make use of $form['#groups'] as defined for that form but this info is only available in the top-level form. The API docs state:

"Hook implementations that need to act on the top-level properties of the global form (like #submit, #validate...) can add a #process callback to the array received in the $form parameter, and act on the $complete_form parameter in the process callback."

Digest Notification

Brief:

One one of our sites (www.thefilmcorporation.com), users register and upload content like albums, videos etc. When this content is seen by a visitor, a email is send to the author, stating his content was viewed along with total view counts

Each user is allowed to upload any number of albums and videos.

Problem:

Now users are getting 15 to 20 emails daily for each and every content that is viewed. 

Question:

Freelance Drupal Developer required

We are looking for freelance drupal developers from India on per day or pr assignment basis. Interested developers can send us their credentials on thefilmcorp@gmail.com

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x