Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [7]

Version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.

0
votes
1answer
364 views

Using #states visible

I am trying to make field_format visible after two select list fields have a specific values selected. I thought be not using 'or' 'xor' that both are required but its not working. this is doing the ...
1
vote
2answers
1k views

How do I reset a user's name using Drush in Drupal 7?

To change a password I would use: drush user-password USERNAME --password="SOMEPASSWORD" Is there a similar way to change a user's name using Drush from the command line?
1
vote
1answer
370 views

Displaying Webforms on Content Types in Page Manager/Panels

The Webform module allows for a webform to be attached to each Content Type of the site. I can "Enable webform functionality" on my Page and Blog Content types and don't need to use a separate "...
1
vote
1answer
370 views

Drupal 7 Captcha on the user_login_form and user_pass form?

just checked on my site and it seems that certain login forms do not have captcha. specifically the form named: user-login-form user-pass I put in user_login_form in the captcha page to make it show ...
0
votes
0answers
18 views

Cannot add a domain to existing drupal 7 site

Sorry in advance if this is a dumb question, I can't seem to figure out how to add a domain name to a D7 site, (currently using an IP). The website is hosted on digitalocean, the new domain is from ...
0
votes
1answer
366 views

Prevent redirect after submitting the form

In Drupal 7 profile2 module, want to make profile2 edit form to stay on the form itself after clicking SAVE button. With the following code, it stays on the form itself and displays the values ...
1
vote
3answers
367 views

Change Text of Create an Account in Login Block

I want to change text of Create an account to <div>something></div><span><a href="actual_link">Click here</a></span/> When I print the form I got these values ...
-1
votes
0answers
4 views

Taarikh Popup by using custom form

I am creating custom field using field #type as "tararikh_popup" by using taarikh module. I was trying it with below code. Please see and suggest me the changes so I can get it right. $form['...
-2
votes
0answers
14 views

Features not detecting all revertible features in first pass

vagrant@www-xxx-com:/var/www$ drush fr xxx_inspiration Do you really want to revert xxx_inspiration.field_base? (y/n): y Reverted xxx_inspiration.field_base. [...
0
votes
1answer
366 views

Taxonomy Term showing strange text

Having taxonamy term issues - as glossary terms showing with text below the text saying "There is currently no content classified with this term." does anyone know how to remove or hide the ...
0
votes
0answers
13 views

Duplicate contact form use contact module “Site-wide Contact Form” [on hold]

i have contact form, and only get 1 receiver. How can i get different site-wide contact form? because i have 3 different email receiver, and i don't know how to create contact module ("contact module ...
0
votes
1answer
32 views
+100

Translating a taxonomy term does not populate content into fields

When translating a node into another language it does the following: automatically populates all fields with content from the source node on the edit form ensures the two nodes are linked as ...
0
votes
1answer
379 views

mod_expires enabled and cache flush

I my apache I have mod_expires enabled. My htaccess contains: <IfModule mod_expires.c> # Enable expirations. ExpiresActive On # Cache all files for 2 weeks after access (A). ...
0
votes
1answer
367 views

How to set default reply-to address in webform?

I am using Webform Reply to module to set Reply to address for mails sent from webforms. This feature works fine but for each webform creation I have to set Reply to address because by default it will ...
1
vote
1answer
366 views

Help with Theme Function

I can't get the theme() function to work. Cleared cache too. If I rename the function to: theme('wow_template', $output') it works but anything other doesn't. function wow_page() { $cloud = '...
0
votes
1answer
460 views

How can I display the Google rich snippets when a view is on “Show: fields” and the panel enabled?

I am building a site using Drupal 7 and the schema.org module and the microdata module. The site is live on production server (and works good). When checking a url from my site site on the google ...
1
vote
1answer
379 views

Script Errors: $(…).once is not a function

This is driving me nuts. For some reason the jquery.once.js file appears to not be loading randomly, breaking various other scripts. The page source clearly shows the jquery.once.js file being loaded. ...
0
votes
1answer
18 views

Can I aggregate all stylesheets core, contrib and custom into one single stylesheet?

Is there any way to avoid Drupal from serving multiple stylesheets and instead bundle them together? I am going to look into https://www.drupal.org/project/webpack I want to avoid all the multiple @...
1
vote
1answer
398 views

HybridAuth Social Login - Authentication failed! LinkedIn returned an invalid Token

I have created project in drupal7.37 (url: http://localhost/test/drupal737) and working on hybridauth-7.x-2.14 module. I installed this module with dependency module and library. I have created ...
1
vote
1answer
368 views

Serial number for each item in Drupal Commerce

I am making a book rental cum selling site. I have planned to use Drupal Commerce for it. But tracking the item is simply not possible & so that I am trying to find the solution for assigning ...
2
votes
1answer
26 views

How to properly attach Google Maps Api to Drupal behaviors in Drupal 7?

So, I've posted on this elsewhere and I seem to either get half answers but they've gotten me closer to a solution but not over the finish line. I'm trying to implement a custom Google Maps ...
0
votes
0answers
26 views

AJAX calls significantly slower in production environment than development environment

I am using Commerce AJAX add to cart in Drupal 7, and the average time for an AJAX call on the development site is 100-200ms. On the live site those same calls take between 1-3 seconds. The ...
4
votes
1answer
440 views

How to get Ajax to load first?

After updating module webform_paymethod_select I noticed that Ajax on webforms stopped working. I was unable to edit any existing webforms or create new ones. This happens when JS Aggregation is ...
0
votes
1answer
374 views

Drupal Block not showing up in right region

sidebar_first I am trying to have my custom block show up in region "sidebar_first" (region exists in the current theme). The block is showing up at the Block admin page but does not automatically go ...
0
votes
1answer
15 views

Views arguments as part of path

Is it possible to create views pages with urls like "prefix-%-postfix" instead of "prefix/%/postfix"?
0
votes
1answer
468 views

How to use the uc_csv module for getting reports

I am using the ubercart module for purchasing products. I want to export the order records/history as csv file and view it in spreadsheet. So I searched and got the uc_csv module. I have installed the ...
1
vote
2answers
521 views

turn off wysiwyg for full html filter format?

How do i set it so that the wysiwyg doesn't turn on during full html mode. I would prefer to hand edit the html during full html filter mode without the wysiwyg editor stripping my html. I'm using ...
1
vote
2answers
514 views

Programmatically get product name by using order variable

I need to get specific product name with order variable($order) in Ubercart. How can I achieve this programmatically. Also suggest me if there is any other way to get product name programmatically. ...
1
vote
1answer
372 views

Webform modules is shown installed but can't access them, their settings

I have Drupal 7 installed and I am trying to install Webform module. Firstly the page shows " The website has faced some unexpected error" and then after re-accessing the Modules page, it shows the ...
1
vote
1answer
390 views

Can we call submit handler of one form into another form?

Can we call submit handler of one form into another form? I have two forms say user profile form and choose membership plan I want to unset submit function of choose membership plan and want to show ...
0
votes
0answers
12 views

how to Add custom js after execution of google chart loader js in drupal 7?

Under hook_preprocess_page function, added custom js file used for adding a chart on the page. drupal_add_js(drupal_get_path('theme', '****') .'/js/loader.js', array('type' => 'file', 'scope' =...
1
vote
1answer
387 views

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 - ...
0
votes
1answer
375 views

Use form_alter to change description under reset password field for user_pass form

I'd like to change the text below the reset password field. I took a look at this answer, and it talks about changing the button, but I need a bit of help to change the text. Here is the debug ...
2
votes
1answer
412 views

Migrate : Update not working

Im using the migrate module to import data from a json feed. Mostly work fine however, i require that each time the feed is imported , updated records in the source are updated in the destination if ...
0
votes
1answer
371 views

Collapsed and collapsible Field Sets in Admin

I have created a fieldset (which groups a field collection). Because it has a few nested levels and many fields, I want it to be shown collapsed. I am trying this code but it does not work. The id is ...
0
votes
0answers
10 views

Is there a module to output view preview in array? [on hold]

The view's preview outputs HTML, but I'd like to be shown also the array of elements the query returns, while using the Edit View preview. Is there a module that does this?
0
votes
0answers
14 views

Get the field for a value of a “List (integer)” field using entity_load()

I am trying to get the label for a value of a List (integer) field using entity_load(). With the code I am using, I'm able to get the field key with $flagging->field_form_status['und'][0]['value'],...
2
votes
1answer
1k views

How can I list all the pages of a Drupal site in csv format? [on hold]

My goal is to get a .csv file list of the titles/urls for all "pages" in a Drupal site, including all Views, panel pages, and nodes, etc. Potential incomplete solutions: Using the xmlsitemap module ...
0
votes
1answer
17 views

Geofield (geocode from another field) - database entry not created

On a Drupal 7.63 site, I have a content type with a "Postal Address" field (address module, v7.x-1.3) (mandatory) and a "Geofield" field (geofield module, v7.x-2.4). The geofield field has no input ...
9
votes
2answers
2k views

Negate contextual filters in views

I got a view, which lists nodes of same type, a "Other activities" view, i use this view on a activity node view. However i don't want the node i am currently viewing, to show in the list as well. So ...
0
votes
1answer
28 views

drupal_get_path function for third party PHP includes files

I am trying to add some PHP includes files into Drupal 7 site. The files are on this page - https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/...
0
votes
1answer
376 views

Endpoint services with url alias name

Is it possible the to view xml/json format data with url alias name instead of endpoint_path/node/1 or endpoint_path/node/2
0
votes
1answer
11 views

Node is flagged, node author comes back to the site, how to show how many new flags since last visit?

I created a "new activity feed" view page in which a user can see how many new comments have been posted to his own nodes since his last visit Eg : since you last last visit : - 21 new comments have ...
3
votes
1answer
391 views

Templating JSON

Is there a Drupal way to template the results of ajax query that returns JSON. The JSON is is being returned to some php module code. If there is not a Drupal way I was thinking of using something ...
0
votes
1answer
376 views

Duplicating view pagers

I need two view pagers / pagination to sandwich the view content or view results. Is it possible to duplicate view pagers/pagination ? What i've done is just printed out the pagers in the template ...
0
votes
1answer
374 views

How do I add a more/less link in block?

How do I add a more/less link to drop-down and roll up a block? I have a custom search block with a lot of field items and as such, the block is so long. I want to be able to add a more link to drop ...
0
votes
0answers
12 views

Display users with quiz results and users who didn't take the quiz

Views shows only users that took the quiz and shows their score from the Quiz module. If I create Users views there is no relationship for Quiz fields and if I create Quiz view it shows only users ...
0
votes
0answers
21 views

Cannot login as admin

I cannot login as admin anymore on my Drupal 7 installation. I tried: Generate a new password with user_hash_password; Generate a new password with SQL Query; Clearing the sessions table; Clearing ...
3
votes
2answers
5k views

How to get node content in an sql query?

I see that in D6 the node table has only the title of the node. How to query database to get the body (content) of a particular node? Update: I figured out the content bodies are stored in ...
1
vote
1answer
386 views

Can I create an “unlimited” values variable?

I'm trying to create an exclude list of sorts that is configurable via the variable admin interface. I have created lots of single value variables, but never a variable as an array where through the ...