


How to make uploaded file permanent to node without node submit
My module automatically save new empty node when user create new node and redirect to edit this node. Now, is it possible to make uploaded file on _node_edit form without submitting form? edit: When user visit “node/add/article” for example, my module save... read more
Custom feed tamper plugin to convert an image GUID into a URI
I have a feed importer for image files, which stores a column in my source csv as the GUID of the final files in Drupal. I also have another importer for, say, articles. In the articles csv, there is an “image key” column, that corresponds to the image... read more
How to make autocomplete return nid and name?
My question is about textfield autocomplete. I have this code: function my_module_menu(){ $items[‘my_module/textfield_autocomplete’] = array( ‘page callback’ => ‘my_module_textfield_autocomplete’, ‘file’ =>... read more
Showing title keyword in autocomplete
I have just installed search auto complete module,its working fine,but the problem is its showing title before every result like: title: Drupal 7.9 Release tile:Understanding Drupal Here Drupal 7.9 release and Understanding Drupal are my article title may be due to... read more
How to set a validation error via ajax?
I am using the formapi to create a form. On one of my fields I have an #ajax call. When the field is changed I call the function. I recreate the form and then replace the whole form on the page. This works fine. When creating the form I have some logic that sets the... read more
CSS changes not taking effect in customized styles folder
I am trying to size the banner in a Jackson theme on my site to fit to the 960px wrapper size have in customized folder in sites/all/themes/mytheme/styles/mytheme.css but no matter what I do the length won’t change, only the height which makes no sense at all. I... read more
Find the total dollar amount spent by shopper in Ubercart, using Views?
I’d like to run a report that will show info about each shopper, as well as the total dollar amount they have spent on my site. I know that the “Customer Orders” page (for instance, mysite.com/admin/store/customers/orders/1 for user #1) shows the... read more
working with LDAP authorization hook
While I have been able to use the LDAP authentication hook (hook_ldap_authentication_allowuser_results_alter) to perform additional authentication, I have not been able to use what I thought was the LDAP authorization hook (hook_ldap_authorization_maps_alter, defined... read more
Custom template for content type, How to print a link field as a hyperlinked image
I am making a site for a music festival. I have one content type for attending artists, which includes the following fields of the fields type Link: soundcloud, youtube etc. I would like to print these fields with an image (small icons) instead of the written link.... read more
Connect two webforms?
I have 2 webforms: survey webform and task webform. The entry point is task webform and it requires user to login. There is a controller or something to check if user has previously filled in a survey webform, if he/she did, go straight to task webform. Otherwise,... read more
Close the iframe after login with Shadowbox module
I have installed the Shadowbox module and I use it to show the login page in a pop-up iframe. The problem is when I click on the sign-in form submit button the iframe still appears and the page refreshing inside the iframe is not the original page. How can I close the... read more
How to link different contents together and display the linked content on the same page?
I am fairly new to Drupal and would need some help. on my site I have to show a few images (A – B – C – D ) created by a content type X. Each of these images will link to a different content Type Y ( 1 – 2 – 3 – 4 ). So when I click... read more
How do I add a confirmation form after the user clicks on "Save" in an edit form?
On a site I’m building, a user can edit certain fields on a node that cause a chain reaction to happen (which I’ve implemented using hook_nodeapi() and its "update" operation). Since this chain reaction potentially affects a lot of other content,... read more
Displaying parts of main menu in separate blocks
I need to display my main menu in separate blocks: the first sub-menu in one block, and the following two sub-menus in another block. I’m using Drupal’s native menu module and also the nice menus module. How can I do that? read more
Custom Path Alias with Initial Letter as Token
For various reasons, I need to change my custom path alias for a taxonomy type as follows… FROM: /composers/aardvark TO: composers/a/aardvark So I’m looking at either creating a custom token, or a computed field to figure out the first letter of the term... read more
hook_views_post_execute already has rendered fields
I have a view with a date field that I would like to move back a few minutes e.g. $timestamp – 60. I run hook_views_post_execute() but, when I look at $view it already has rendered markup in it:... read more