Drupal Answers Weekly Newsletter
Drupal Answers Weekly Newsletter

Top new questions this week:

How to call a function when a node is being viewed?

Whenever I view a node page, I want to call a function but I'm not sure how to do that. I was thinking I should use hook_menu() and declare the path as node/%, and attach a callback function to that …

7 nodes menu  
asked by user13198 8 votes
answered by Clive 5 votes

How to pass variable from module to other theme

I would like to pass variables from my custom module to some of my custom themes. The most tutorials are concerning using hook_theme function but as I understand, it works only for creating new theme …

7 hook-theme theme-registry variables  
asked by tomas.teicher 5 votes
answered by Beebee 5 votes

What is the difference between t() and @Translation() in Drupal 8?

When writing a (translatable) plugin in Drupal 8, you have to use Drupal\Core\Annotation\Translation;, and then wrap your value in @Translation("value"), however when implementing the FormInterface, …

translation 8  
asked by Chapabu 5 votes
answered by kiamlaluno 6 votes

Using Infinite Scroll module with Views paging: Detrimental to Google SEO?

I love using the Infinite Scroll module with Views. But does Google limit indexing to to only those first bunch of nodes which appear in the view? I'm guessing that when using a regular pager, …

views ajax paging seo  
asked by Meggy 5 votes
answered by Clive 6 votes

.inc files in Features - how are they being included?

Regarding the features module: I am working with a module which was created by features. I see a lot of .inc files in the module, but see very few actually included. Does this make any sense? I know …

7 features  
asked by user1015214 5 votes
answered by zroger 6 votes

What is the purpose of using node_submit() before node_save()?

I am creating a node programmatically , In the code given in the link http://timonweb.com/how-programmatically-create-nodes-comments-and-taxonomies-drupal-7 after creating a node, the code goes as …

node-save  
asked by user13198 4 votes
answered by Berdir 6 votes

How to properly filter a form's data against XSS?

Drupal 7. I've got an (ECK module) entity form. The form's only field is a multi-value field of the field_collection (Field Collection module) type. The field collection contains two fields: a …

form-api entities field-collection validation xss  
asked by Yuriy Babenko 4 votes

Greatest hits from previous weeks:

CKEDITOR not working Drupal 7

I have 2 drupal sites, both using Drupal 7. How can I add full HTML format, and attach CKEditor to it?

7 ckeditor  
asked by Russ 4 votes
answered by Nikhil M 8 votes

Using jQuery to communicate to Drupal 7 via AJAX

I've been learning how to use AJAX with Drupal 7. I already know how to use the '#ajax' attribute with a form and also how to use the 'use-ajax' class with a link. I have a nice jQuery slider on my …

jquery ajax  
asked by darkadept 3 votes
answered by Bart 13 votes

Can you answer these?

Programmatically create node with select List

I'm trying to add nodes via a JSON feed. However, I'm having trouble setting the value of a select list field. I have this at the moment: $node->field_name[0]['nid'] = …

fields nodes node-save  
asked by JonBubble 1 vote

Product Supplier Sales (relational) database

I've got the following information to store: SalesChannel F --- ( Price D ) --- Product A --- (Price X) --- Supplier V SalesChannel G --- ( Price E ) --- Product A --- (Price Y) --- Supplier W I …

database product relation  
asked by Chris 1 vote

Getting 404 for original video files, called with file_create_url

I am facing a strange problem. Environment Drupal 7.23 Video Module File system Writable (public download method) When i trued a custom HTML5 Player from MediaElementjs its not loading video. …

files video ffmpeg  
asked by Nikhil M 1 vote
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3