How to remove and add joins to a view?

How to remove and add joins to a view?

Because of some buggy handlers I need to write a hook that will: Get location_instance table’s alias from the original query Remove location_instance table join Remove that alias join Remove a location table join Add 2 new joins Apparently views does things a... read more
How to remove and add joins to a view?

How to add parameter to URL when passing ids as arguments to a page?

I have a view with an action Pass ids as arguments to a page where I need to add to the link. There is a parameter which I receive in the URL. I can print the parameter in the view, but I am not able to pass it as a token. It is not parsed. Any ideas? Basically I need... read more
How to remove and add joins to a view?

How to get logged user id?

I am developing a moule which has one page asking for email frequency; when the user selects and save it, I save it in the user table, but it doesn’t work. It works only when I hard code the user ID. global $user; $uuid = $user->uid; function... read more
How to remove and add joins to a view?

Override theme function for menu callback

What I am looking for: I have a custom node link which, when clicked, displays a custom HTML content (option selections) in a lightbox. I need to pass an argument to the HTML content to generate the HTML code. What I did: I created a menu callback with one argument,... read more
How to remove and add joins to a view?

Adding the video field to a content type

We’ve been using an SWF player for a while. I added the Video module without adding a new content type, just to see if the HTML5 tag worked. It does. However, that obviously doesn’t give us an SWF fallback. I then tried to add a Video content type as per... read more
How to remove and add joins to a view?

How to migrate to translatable fields

I am using the latest Entity Translation module in order to provide a couple of translatable fields for some of my content types. I have a content type which has a translatable field which is called “title_field”. I am using the Migrate module (version... read more
How to remove and add joins to a view?

How to close the overlay after form submission

In order to be able to quickly edit Fullcalendar items, I altered the node edit form of the specific content type so the events are saved with AJAX and the page doesn’t have to reload. However, I don’t know how to close the overlay afterwards. I found... read more
How to remove and add joins to a view?

Node Add / Edit Options Vertical Tab Problem

For just one of my content types — the built-in Article content type — the node option vertical tabs at the bottom of the add / edit form are not displaying correctly. As shown in the attached screenshot, the first node option for whether to create a menu... read more
How to remove and add joins to a view?

How can I share session variables across sites? [closed]

On my main Drupal site, users need to be able to select a display preference (e.g. ‘high visibility’). This will be available to registered and anonymous users but only for their session, so I plan to store their preference in a session variable, for... read more
How to remove and add joins to a view?

Building the sidebar content on each node

Im going to build a version content heavy site that will contain over 100 of pages. All pages are created in a “Two column layout” the main column contains the Title and body text of the node. And then theres the sidebar, i like the admin of the site to be... read more
How to remove and add joins to a view?

How do I add administrator approval on webform submitted data?

I have the functionality that when any anonymous user submits a webform, then I display the submitted webform data in my new page, but I need admin approval before that submitted data displays on another basic page in Drupal 7. Does anyone know about admin approval... read more
How to remove and add joins to a view?

Hide block on specific page through custom contextual link

We usually require to hide some blocks on specific pages for which we need to goto configure block page and add the URL of the page where we do not want to display a block. Instead of going to configure block page, I want to add a contextual link ” Don’t... read more
How to remove and add joins to a view?

Unable to create newsletters

I am logged in as user/1 and have created a News content type with publishing options as “Use as simplenews newsletter”. I believe all the permissions are correct. When I try to add new content using this content type I see these at the top of the page:... read more
How to remove and add joins to a view?

How do you use hook_query_alter to get inside a query’s creation?

I’m getting no love from hook_query_alter. I have a simple query to which I want to add a tag, while also adding a node_access tag. Thus the whole query looks like this: $the_nodes = db_select(‘node’, ‘n’)... read more
How to remove and add joins to a view?

Records with identical uid and timestamp in node_revision

I’m investigating an issue on a D7 site where a handful of node revisions have apparently gone missing. The issue was discovered on 3/5, and I just noticed in my node_revision table that several records were created on 3/4 with the same uid and the same... read more
How to remove and add joins to a view?

Use safe_key in webform emails

I want to be able to send the safe_key through the internal email. The website was doing this before, and for some reason is not any longer. I’ve tried %value[safe_key] and %safekey. I read some information here, but no one seemed to have an answer that worked.... read more
How to remove and add joins to a view?

How to alter image style based on product custom attribute?

I’m building a webshop based on Ubercart, and products have a custom attribute “sold out”. When this attribute is checked, all product images should be displayed with a semitransparent overlay textbox: SOLD OUT. Theoretically, I found a couple of... read more
How to remove and add joins to a view?

Show PDF/print icons inside a template file

I am using a template file to render a content type. So I print variables as with the following code. print $node->body I have installed the Print module, and I have selected the option to display print icons for this content type to, but the icons are not getting... read more
How to remove and add joins to a view?

Using the Batch API with AJAX?

I have been trying to figure out how to use the Batch API in an overlay via AJAX, but are not sure that’s possible at all? – As far as I can see the batch API, when javascript is enabled, calls the misc/batch.js, which at status=100 performs a... read more
How to remove and add joins to a view?

How to Print /PDF entire page

I was wondering if the Print module can be used to print an entire page, not just nodes. I need to add some blocks to the pdf as well, not just the node content. Is there any way of doing this, or will I need to manually add the blocks to the node->content... read more