


stream wrapper public /private not found Error
Configuration : WAMP on windows drupal 7 I have tried using $image = file_get_contents(‘E:Team_Installwampwwwrootfoldersitesallmodulesmy_moduleerrorwinmobilesdk.jpg’); $file = file_save_data($image, ‘public://’,FILE_EXISTS_REPLACE); I can see... read more
Using theme hook suggestions for webform confirmation page
I’ve been trying for the last couple of hours and failing to use theme_hook_suggestions for custom webform confirmation templates. I want all webforms on a specific content type to use a particular confirmation page template. So I’ve got the following in... read more
Pulling capacity and slots left from entity registration
I’d like to pull the values for capacity and the slots left from a registration created by the entity registration module. This sets up registration entities which are attached to (I believe this is how it works – my familiarity with the entity system is... read more
I want to change language in a select list and whole site changes to selected language(All content)
I want to have four languages Catalan, Spanish , French and English. English language will be default.If i change language to be spanish,i want the whole site to change to spanish or if i change to french the whole site should changed to french. Example site. I want... read more
How to display specific blocks for specific roles alone w.r.t domains and subdomains
I want to display specific blocks for specific roles alone with respect to domains and sub-domains. I know i can give permission for roles in the block to be displayed.How do i differentiate anonymous users with respect to domain and sub-domains in the permission of... read more
To get a table in drupal 7 same as content_type_[your_field_name] in drupal 6?
In the Drupal 6 database, for every content type, there is a table that’s called content_type_[your_field_name] Now I have a database query as follows in drupal 6 : db_query(“SELECT n.nid FROM {node} n INNER JOIN {content_type_field_abc} s ON n.vid = s.vid... read more
Pagination isn’t working
I have a homepage view called FrontPage. Currently, it shows the pagination link like “1, 2, 3 Next->” as it should; when I click on Next, it goes to http://example.com, not http://example.com/page/1/0. I have checked the taxonomy archive, and it is has... read more
How to change operator in schema.xml and configure site for AND search
I am using Solr search with drupal.Its working fine on my site but the problem is i needed the search to be a specific to the searched content. If i searched for “assembly and key”,the search result showing all results which is having the world assembly... read more
Insert Record Using db_insert in Block
I have created a block whose content uses the PHP as input filter. What I want to do is inserting a record into a separate database. The code I am using is the following one. $tracker = array( ‘database’ => ‘tracker’, ‘username’... read more
an error when changing the date form
I need to change the date form of quiz module in quiz.module on line 1307 it was this: $form[‘quiz_availability’][‘quiz_open’] = array( ‘#type’ => ‘date’, ‘#title’ => t(‘Open Date’),... read more
How do I alter the route defined by another module?
In other words, what is the Drupal 8 equivalent of hook_menu_alter()? Drupal 8 still uses hook_menu(), but for what I can see, the information returned by the hook is different from what the hook returned in Drupal 7. For example, the definition given in user_menu()... read more
a function to return the quiz nid
There is a template file in the quiz/template/quiz-report-form.tpl.php of Quiz module. this is the code: <?php /** * @file * Themes the question report * * Available variables: * $form – FAPI array * * All questions are in form[x] where x is an integer. *... read more
Panel content page not displaying correctly after restoring backup on different server
I recently had to restore a backup to a new server, and many things seem to be working fine, but others are not. For example The panes page which is suppose to show links neatly on the page in a dropdown menu is displaying them messily around the page. My pixture... read more
How to display physical dimension fields on node–product.tpl.php?
I am using the Drupal Commerce module and I want to print the physical dimension fields(machine name: field_width) value on product detail page. How can I print physical dimension fields value in node–product.tpl.php file? My file code is like so: <div... read more
Issues with Zen subtheme
I am running a Zen subtheme for another drupal instance and it all worked fine. However, when I copied the folders across to my new Drupal instance, all I see is The name of the site and User menu : My account Log out There is no Add content link… or the... read more