Skip to main content

Drupal Answers Weekly Newsletter - Wednesday, July 30, 2014

Drupal Answers Weekly Newsletter

Top new questions this week:

Understanding Drupal 8 and namespaces

I am new to namespaces and I am practicing with Drupal 8. I have created a custom module and have installed the contrib, devel. Inside my module, I have defined a block, here is my code: namespace …

8 namespaces  
asked by user1015214 4 votes
answered by Clive 3 votes

How to preserve form values for user who navigates out of form and back?

I have a form that works, essentially, as a search / filter: foreach($search_properties as $property) { $form['properties'][$property->idProperty] = array( '#title' => …

form-api ajax session  
asked by Mołot 3 votes
answered by Andy 1 vote

Pathauto: Custom punctuation replacement

Instead of having Pathauto replace punctuation in the path alias with a default separator ( dash for example ), or remove it, can we somehow specify a custom input to replace with? For example, " …

path-aliases pathauto  
asked by petergus 2 votes
answered by Andy 1 vote

Is there an efficient way to dermine whether a node can be viewed by all users?

I am trying to use the Drupal node access API to determine whether a node is subject to an access restriction. That is: I want to make sure that the node can be viewed by any authenticated user …

node-access  
asked by Free Radical 2 votes
answered by coreyp_1 0 votes

When are '$form_state['values'] copied to '$form' on rebuild?

as far as I understand it whenever you submit and rebuild a form (e.g. 'Add another item' on fields with infinite cardinality) something like this happens: User submits a form with filled values …

7 form-api form-submission  
asked by Petrroll 2 votes
answered by chx 2 votes

Is a DB transaction executed when it is committed?

cache_get() is not working as expected when called in a request initiated by drupal_http_request() on the same server. Is it true that the cache_set() immediately before drupal_http_request() doesn't …

caching db-api  
asked by htoip 2 votes
answered by Berdir 2 votes

How to pass an extra argument to an entity form?

Suppose, I've two entities: entityA entityB A user creates an entityA and has the option of creating multiple types of entityB referenced from a single entityA. For example, a parent-child …

entities entity-reference entity-api 8 entity-field-query  
asked by xan 2 votes
answered by Daniel Wehner 2 votes

Greatest hits from previous weeks:

How do I debug Drupal?

I already configured Komodo once to debug Drupal, but it was really hard. Can anyone please explain how to debug Drupal in a step-by-step way to make it simpler for everybody?

debugging  
asked by João Guilherme 81 votes
answered by Matt V. 67 votes

Get all users with specific roles using EntityFieldQuery

I thought this was an easy task, yet there does not seem to be a Drupal-method for this. I came as far as knowing I have to use EntityFieldQuery for this - because the API said conditions for …

7 entity-api  
asked by noxoc 20 votes
answered by Bart 15 votes

Can you answer these?

How to add multiple meta tags with the same property?

I'm trying to set up OpenGraph tags on a page containing a video. I'm currently setting up the usual sorts of <meta property="og:video"...> tags with calls to drupal_add_html_head(), and that's …

video html meta-tags  
asked by Jim Miller 1 vote

how to pass multiple view fields to an action via vbo?

I have a view relating different types of information together. I have a node type and 2 relation types. The base node is related to other nodes using the 2 relations. Lets say there are 3 fields in …

views views-bulk-operations  
asked by schulle877 1 vote

How to Change View Filter Operator in Views Filter

I want to Set View Filter Operator to "Less Than Or Equal To" <= in Views Filter of Drupal 7. MACHINE NAME field_guests FIELD TYPE List (integer) WIDGET Select list

views hooks views-filters better-exposed-filters  
asked by Jürgen Kruja 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

Comments

Popular posts from this blog

Drupal Answers Weekly Newsletter - Wednesday, December 31, 2014

Top new questions this week: Can I delete old hook_update_N functions? Suppose you have a custom module, and you have hook_update_N() implementations in your .install file. If you have old update functions, and all updates have run in all sites that the module is ... node-update hook-update-n   asked by AyeshK ...

[New post] 8th Class Result 2014 PEC Hafizabad Board

Muhammad Waqas posted: "PEC Hafizabad Board 8th Class Result 2014 expected date is 28th March, 2014 by PEC. Punjab Examination Commission (PEC) will announce 8th class result for Hafizabad Board soon and all the students of Hafizabad Board who are extremely waiting for the resul" New post on Jobs in Pakistan 8th Class Result 2014 PEC Hafizabad Board by Muhammad Waqas ...

[New post] 1st Year (11th Class) Result 2014 BISE Rawalpindi Board

Xaib Aslam posted: "BISERWP board Inter part 1 result expected on 10th October 2014 according our source. students of Rawalpindi board desperately waiting for 11th class result. 1st they upload the 12th class result and after some time they ready for showing the 1st year fin" New post on Jobs in Pakistan 1st Year (11th Class) Result 2014 BISE Rawalpindi Board by Xaib Aslam ...