


How can I get the image URL in a field?
The image formatter has only one option: Image. I would like to get the URL, not the full markup, for a field output. Do I need to make a custom formatter? Also, I don’t see any way to rewrite the text using tokens to get the image URL. read more
Modal form with CTools opened in several different pages
I have a working module which opens a modal form with CTools. However, I must use the URL example.com/mymodule/page . There the module creates the link which opens the modal window with the form. How can I use the link in other pages? I have tried to just put the link... read more
Autofill texfields based on select option in dynamic fieldset
In my custom form i am dynamically generating multiple fieldsets.Each field set has select option(dropdownlist) and textfield generated dynamically. The value for textfield is dynamically generated based on user selected value from select option. My problem is that if... read more
List nodes of children using taxonomy_select_nodes
I want to list nodes from children terms using or editing taxonomy_select_nodes function. Actually I added these few lines but I get an infinite loop or slow response: function taxonomy_select_nodes_ext($tid, $pager = TRUE, $limit = FALSE, $order =... read more
Correct way to extended Field Settings
I’m doing something that works fine but I get the feeling there is a better way. I have managed to extend the field settings in the field’s manage page to add two new checkboxes. The checkboxes in this case, allow the input form field to be rendered with a... read more
Looking for something similar to "Views selective filters", just with "inactive" instead of "removed"
The Views Selective Filter module reduces the filter items in a views exposed filter to only those having actually results. I’m searching something similar, but I don’t want to hide the options with no results, instead I want to make them inactive (shown... read more
How to add unique identifier to each submission?
In short, I am trying to figure out how to add a custom and unique identifier to each submission from the Webform module. Example: User fills out the Webform and submits. User then receives an email (email is captured from email field in Webform) confirming their... read more
How do I change a product variaton through an image field?
Using Drupal Commerce you can set fields in the product entity which can function as attribute selection fields. The visitor can use them to switch the variations of a product. I created a field called SIZE which allows the visitor to switch the variations of a... read more
Can’t seem to edit page title in og/users/%/add_user
In our what should be titled “Add Users”, both H1 and title both contain the value “Home”. I have even tried to overide with another module’s hook_menu_alter. function hook_menu_alter(&$items) {... read more
add link in Colorbox caption
In my gallery, what i write as image title is the caption of my image and that is great. Now I would like to add a link (external url) to my caption, how can i do that? I already try to write normal url and html a tag but is always ignored. I see two option in... read more
Drush site-upgrade target database
When using the drush site-upgrade (drush sup) to do a D6 to D7 upgrade, does the target database need to be pre-filled with D6 tables? Or can it be completely empty? Thanks read more
Drush site-upgrade : "Unknown option: –uninstall"
I’m trying to upgrade a Drupal site from 6.34 to 7.x using Drush. When I run drush site-upgrade @alias, everything goes well until step 12-a where it ends up throwing this error : Unknown option: –uninstall. See `drush help pm-disable` for available... read more
How would I clear values in ajax loaded select options?
http://pastebin.com/TX2UiJGZ I have 3 select drop-downs, selecting a value in the first populates the second using ajax, selecting the second populates the third. However when I change the value of the first select it doesn’t reset the second (If I already chose... read more
Block overriding with template file doesn’t work
The Drupal version I’m using is v7.34. I’m using sub-theme created from Bootstrap as base theme. My problem is, I want to override the “User Login Block” and put it in the header region (top bar), so I create these file in templates folder in... read more
The clean URL test failed. (ubuntu14.04 lts + virtualmin + Apache/2.4.7)
i can’t enable clean url. Mod_rewrite is already enabled. Anything i’m missing? here is the conf my apache is running user mode, the document root is in /home/drupal/public_html /etc/apache2/sites-available/drupal.domain.local.conf <VirtualHost *:80>... read more
Changing page orientation of a pdf of a views generated by the Print module
The Print module (https://www.drupal.org/project/print) allows users to generate a PDF of nodes, views and panels. It allows for the selection of a default page orientation (portrait or landscape), and it allows for administrators to override the default orientation... read more
Alter view with hook_views_post_render and save results to cache
How can I alter the results of a view with hook_views_post_render but save the altered output to cache, in order to avoid the overhead of altering the results on every request? The ideal scanario should be like this: Is the cache expired -> Yes -> alter the... read more
Remove Simplenews Newsletters?
I had set a content type to allow it to be used as a simplenews newsletter, and then updated the JSON Feeds Processor so that it filled in the simplenews category for all the items. However after realizing this wasn’t what I needed, I removed the field... read more