Drupal Answers Weekly Newsletter
Drupal Answers Weekly Newsletter

Top new questions this week:

How do I populate an address field in php?

I want to import data from a external source and so am writing a module that creates content by populating the fields of node bundles in code. I followed this guide which is great. So I am working …

addressfield  
asked by NectarSoft 5 votes
answered by Clive 5 votes

updating field value of a content type with query

I have a problem, may you guys can help me :) I have content type called book, and it has field called stock. Instead of using node_save() I want to update value of book stock using manual query. I …

nodes content-types sql-queries  
asked by Rijalul fikri 3 votes
answered by arpitr 1 vote

How to create a drush command without drupal?

I'm attempting to create a drush command for use outside of a Drupal install. It's basically a script to make a copy of a distribution starter kit and do some string replacing. I'm following the …

drush  
asked by Craig 3 votes
answered by greg_1_anderson 3 votes

hook_mail dosen't work?

I have these two functions, the first is to send the email via drupal_mail() function : function example_function_name($what) { drupal_mail('MYMODULE', 'some_mail_key', '[email protected]', …

7 hooks email  
asked by Boussetta moez 3 votes
answered by Mołot 4 votes

How to theme the edit page of a form and retrieve $form variable from the hook_form_alter into the template for theming purposes?

I have a content type A How can I add custom theme to edit page of that content type A in drupal 7 only for specific role ? In my module, function …

7 theming forms hook-form-alter hook-theme  
asked by harshal 3 votes
answered by xurshid29 3 votes

Automate the creation of settings.php and files directory

I am using Drush make files and Drupal Installation profiles to streamline the creation of new Drupal websites (which are created in the sites directory of my Mac). Everything is working fine. The …

drush automation installation-profile  
asked by big_smile 2 votes
answered by greg_1_anderson 1 vote

pass taxonomy term value to content type

on view page there would be a 2 level taxonomy term listed as menu. If i select any leaf taxonomy term for e.g (mobile -> mobile accessories) whereas mobile accessories is the leaf taxonomy term. …

taxonomy content-types urls  
asked by Mangesh phadtare 2 votes

Greatest hits from previous weeks:

How to add extra fields to user profile?

I'd like to add additional fields to the user profile. I'd like user to be able to edit almost all the information I store in the database about him. I have some ideas: maybe it's possible to do …

7 fields users user-profiles  
asked by alexey 8 votes
answered by FLY 7 votes

How to copy content type in Drupal 7?

How to copy content type in Drupal 7 ? I can't find a button to duplicate content type.

7 content-types  
asked by Shivan Raptor 10 votes
answered by hpn 10 votes

Can you answer these?

CKEditor Module: How to customise font style drop downs and buttons

I am using Drupal CkEditor. I want to customise the styles that appear in the drop down menu. I also want to remove some of the buttons. How can I do this? Steps I have taken to remove styles: …

ckeditor  
asked by big_smile 1 vote

bef doesn't work with hierarchical taxonomy?

I'm using better exposed filter module, and trying to build a filter based on a hierarchical taxonomy. But I can't work it out. Whatever how many terms in the taxonomy, the filter only show two …

views taxonomy better-exposed-filters  
asked by clark 1 vote

change sort type of views

I am using feed module to import form excel file, one of my field is a incremental number 1,2,3,4,5 ,..... ' , I get it as 'GUID' in feed importer. I want sort the result in views, I see the views …

views views-sorting hook-query-alter  
asked by zhilevan 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