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
521 views

View modes are stuck on default view

I had my site for quite some time and just started to use the display suite view modes feature for changing the displays per node. I made new view modes and tried to change them for my nodes, but it ...
2
votes
2answers
818 views

Change commerce kickstart admin toolbar logo [on hold]

Hello I want to change the logo of the admin toolbar of commerce kickstart how to do it I cannot find any .tpl with that piece of code for chage that logo
1
vote
1answer
503 views

How do I filter the current year?

Initially, I have installed the Token module and created a Views block containing years. I want to filter out the current year from the block (it should not show the current year). In filter ...
0
votes
2answers
500 views

Max allowed packet issue drupal 7

What causes max-allowed packet issue in drupal 7. We have set the max_allowed_packet size to 1024mb (1gb). Still we are facing the problem in quick intervals. Also dblog module is not working even ...
1
vote
1answer
493 views

how do I build a dynamic URL in views?

I am using drupal 7, have a content type and two taxonomy categories, size and shape. Im trying to build a dynamic url such as mysite.com/node/nid/tid/tid, which would get rewrote as e.g mysite.com/...
1
vote
1answer
505 views

Drupal Bootstrap THEME_menu_tree on new menu

I'm using Drupal 7 and the Bootstrap theme, in template.php I am successfully theming the primary menu (main menu) to enable extra list styles with function MYTHEME_menu_tree__primary($variables) { ...
0
votes
1answer
450 views

How do I insert a user picture's thumbnail on the “Submitted by” field?

I want to insert user picture's thumbnail on "Submitted by" field, which is displayed in teaser such as the following. Submitted by [some_user] [someuser picture's thumbnail] on xx/xx/xx How do I ...
0
votes
0answers
12 views

Drush's --tail option stopped working

Using Drush 5.9, Drupal 7.67, PHP 7.1.22 - haven't updated anything for a few weeks, but last Thursday wd-show --tail stopped working for me. This is both on my local (MAMP) and remote (on Google ...
0
votes
0answers
10 views

How can I conditionally alter search API relevance score?

I must be missing some core concept of search API somehow, but I am stuck. The goal is to alter search API results depending on a flag, like Give flagged products in search API a higher search score? ...
0
votes
1answer
14 views

How can I pass parameters to a Services endpoint?

I have installed Drupal 7 and enabled Services in it. I have also created an endpoint /api/v2/ and in resources, I have allowed nodes to be listed as JSON. I have sent a GET request using browser or ...
2
votes
1answer
448 views

User Role cannot create Organic Groups content without having Administer permissions to OG

I am using Organic Groups on a Drupal 7 website. I created a Group Content type and a few user roles. The user roles are defined in the Drupal roles (and not OG roles). I want to make sure that a ...
0
votes
1answer
665 views

Table Pager Rendered in an Ajax Callback Shows White Page

I have the callback function below that renders a table with a pager. Every page of the table is 20 rows. Below is the code: function myid_print_all_submitted_id_callback($form, &$form_state){ ...
1
vote
1answer
610 views

How to make a reference to an entity using the uuid of the entity?

Is there any way to make a reference to an entity (using refereces, entity reference or relation) using the uuid of the entity? I'm using features and uuid_features to export the content but ...
1
vote
1answer
89 views

Feeds Soap - importing items but can only add 1 item at a time?

I'm having problems with using this API to get my details from: http://api.tradera.com/v3/PublicService.asmx?op=GetSellerItems It imports almost all fields and create nodes as it should however the "...
2
votes
1answer
376 views

Is there any security consideration with webform and Salesforce API?

We are implementing the Salesforce webform module for our client and they are asking us if there are any security issues to consider by having SOAP installed on their server. (The Salesforce API ...
5
votes
2answers
952 views

views with a SOAP back end

views3 supports plugable backends rather than a RDBMS, there are backends for solr, sparql, mongodb. Is there such a plug in to enable views to be a front end for a SOAP api? I have found a number ...
4
votes
3answers
2k views

Drupal and SAP integration - looking for case studies [on hold]

I'm looking for Drupal and SAP integration case studies, the only one I have seen that has good documentation is: http://10jumps.com/category/drupal-sap-integration In summary this appears to ...
0
votes
0answers
584 views

How to install wkhtmltopdf Libraries?

Drupal 7.59 I use Views extensively, and would like to add https://www.drupal.org/project/views_data_export_pdf module. As per the Module documentation, a prerequisite is the installation of ...
0
votes
1answer
98 views

Unable to install the “H5P.Scorm.h5p” library: “The uploaded file was not a valid h5p package”

Thanks to jackrabbithanna’s help on this other question I seem to be 1/2 way to getting H5P related libraries installed in my Drupal 7.59 install. I am attempting this on macOS High Sierra under MAMP ...
0
votes
1answer
60 views

How do I load a library using xautoload and libraries?

I am trying to load the facebook SDK (drupal 7) but I am getting the error Error: Class 'Facebook\Facebook' not found in FbPageSyncProcessSubmission::fbpagesync_facebook_sdk_initialize() ( My ...
0
votes
1answer
44 views

How to use libraries function

I have the libraries module to add some libraries in my drupal site. Currently I need to use mailjet, I found some modules with some functions to talk with api but I've tested this for multiple hours ...
0
votes
1answer
47 views

PHP namespace error

I'm using libraries, not using composer, and it's on Drupal 7. I installed and enabled xautoload so that I can use classes from a library that has namespacing. I think I got the xautoload function of ...
1
vote
1answer
48 views

How do I get the requirements in a module's composer.json merged into the consolidated composer.json?

I am trying to use composer correctly to install a library named nikic/php-parser. Thanks to helpful comments by Clive, I now understand that when a Drupal 7 module comes with a composer.json file, ...
0
votes
2answers
1k views

Loading a jQuery plugin from the Libraries 2.X module in Drupal 7?

I am using the jQuery Easing plugin (http://gsgd.co.uk/sandbox/jquery/easing/) for one of my Drupal 7 themes. I see that there is a Libraries module that loads this plugin in a way that allows other ...
1
vote
3answers
617 views

Importing and using overlay from jquery_plugin module

I am trying (and failing) to use the jquery overlay plugin from the jquery_plugin module in Drupal 7. I am using drupal_add_library() to add the plugin and drupal_add_js to add the code to generate ...
1
vote
1answer
61 views

Libraries require jQuery and not work

I load some libraries in my module by using this hook : function food_truck_form_views_pre_render(&$view) { if ($view->name == 'marqueurs_admin') { drupal_add_css(libraries_get_path('...
3
votes
1answer
739 views

Custom module library not detected

I am writing a custom module to load the crossfilter.js library in Drupal 7. I have followed what I believe are the right steps to doing that when using the Libraries module API. However when I run ...
1
vote
1answer
206 views

How can I extend a module and it's library with custom functionality?

My client requested a modification to their slider that will enable two captions. I'm using the Views Nivo Slider module and believe I can accomplish what I want by modifying the module"s code and ...
0
votes
1answer
43 views

Stuck developing a new library module for “vminpoly”. “Drupal.behaviors” confusion

I think this could be really useful to the masses. I've so far not found a alternative. If you know of one, please do advise. My use case is having a banner with a height of 85% of the viewport. The ...
0
votes
1answer
590 views

How to use drupal_add_library with a module?

I'm new to Drupal and don't really understand how to set up drupal_add_library. I've made a simple module that links out to a .js file. However, this .js file depends on a couple of generic functions....
0
votes
1answer
94 views

correct way to load JS library for custom module

I am trying to use d3.js in my module, but I am facing some issues. I have the D3 module installed in sites/all/modules/d3/ and d3.min.js installed in sites/all/libraries/d3/, and I can see the d3/...
0
votes
1answer
534 views

Add radio buttons and text field together to theme-settings.php

I want to integrate a CSS switcher into my theme, but without the Color module. So I want a radio button list, (or a select list, or dropdown, doesn't really matter), with a list of different styles, ...
2
votes
1answer
2k views

Retrieve taxonomy terms with EntityFieldQuery for a given parent term

I am retrieving a tid of a taxonomy term by using EntityFieldQuery. However, I need to cross-link the taxonomy_term_hierarchy table to list those terms which have a particular parent, but I am not ...
0
votes
1answer
315 views

How to add a 3rd party library and call it using Libraries

I've installed the Libraries module. How can I add a 3rd party PHP library in my Drupal 7 project. How do I use hook_libraries_info()?
1
vote
1answer
559 views

Cannot install modules

I am very new to Drupal so please excuse me if this is an easily answered question. Basically I wish to install CKEditor, however when I upload the module thorugh the online installer I am greeted ...
-2
votes
0answers
9 views

Notifications_Node_Update_Event not load on cron

When i execute a cron, i got this error : PHP Fatal error: notifications_cron_queue_event_worker(): The script tried to execute a method or access a property of an incomplete object. Please ensure ...
4
votes
1answer
641 views

Unlimited field collection pagination in node edit page

In my node I have a field collection which is set to unlimited. How to enable pagination for node edit page, where all items from that field collection are displayed? For display there are couple ...
0
votes
1answer
444 views

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

Different front page template for different domains

I have Drupal 7 installation with the Domain Access module. I need to have different page--front.tpl.php templates for some of the subdomains, for example: www.example.com should have one type of ...
0
votes
3answers
521 views

receiving incorrect url from amazon s3 module

I am using drupal 7. I have installed amazon s3 module and its dependencies. I have created a bucket for saving my files on amazon server. Everything went good.. But when i try to get the path for the ...
0
votes
0answers
491 views

Creating a block with visibility set to “Only the listed pages”

I have the following code. It does create the block but I still cannot figure out why it is not adding that block to the desired region and also pages visibility settings are not working. What am I ...
1
vote
2answers
26 views

How do I let non-admin user approve comments?

I'm looking for a way to allow a non-admin user to approve comments. I thought a Flag/Rules combination might be a solution but I can't figure it out. I added a content-moderator role, then I ...
4
votes
0answers
497 views

Single signon with Microsoft Outlook Webmail [on hold]

I am using Drupal 7. I wanted to create Intranet pages where staff/employees can log in with their credentials. Is there any way so that they can log in with their https://login.microsoftonline.com/ ...
0
votes
1answer
701 views

Methods to migrate webform data [on hold]

I was wondering if anyone else has done this. I've got webform data I want to take from a Drupal 7 website to another. Having looked at the Migrate module and migrate extras, there is a destination ...
1
vote
2answers
684 views

Iterate through all children of an element

I have a Drupal code below: function myid_create_template($form, &$form_state){ $form['myid_templates_editor']['#access'] = TRUE; foreach (element_children($form['...
0
votes
1answer
841 views

Display date picker not inline in Drupal 7 Forms API

I have installed Date Picker Module and it works fine. Below is the code: $form['date'] = array( '#title' => t('Select your birthdate'), '#type' => 'datepicker', '#date_format' =&...
1
vote
1answer
168 views

Converting UTF8 Data to SQL_ASCII

I want to convert my query results from a database, which is SQL_ASCII database encoded, to UTF-8. $result = $query->execute; $converted_data = array(); foreach($result as $record){ $...
3
votes
1answer
441 views

Custom form values in hook_form_alter not available in custom validate function Drupal 7

I'm modyfing a node form to add a few extra fields. On submit, I need to program some extra logic to these values then save them to the node object. function module_form_alter(&$form, &$...
1
vote
1answer
13 views

Undefined index: und on .tpl.php for content type

How can i fix the error message? the error message is Notice: Undefined index: und in include() (line 9 of /var/www/html/sites/all/modules/custom/theme/icons.tpl.php). my code is: <?php ...
4
votes
4answers
4k views

`drush uli` generates correct link but results in 'Access Denied'

I have set up a Drush alias for my website (hosted on a shared hosting), the alias works correctly, because commands like drush status, drush cc all, etc. work. The problem comes with drush uli. It ...