Stack Exchange Network

Stack Exchange network consists of 174 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
0answers
27 views

How to change the icon classes using mmenu

I'm new to the drupal community, so I'm sorry if I make any mistakes in posting this question. I want to change the menu-item icons for the Mobile sliding menu module. I realize that my question is ...
0
votes
0answers
10 views

Sending Backup to Google Drive

It seems that the Backup and Migrate module can only send backups to a server directory, node squirrel, FTP client, an amazon S3 bucket, or email, and plugins integrating google drive are only at an ...
2
votes
0answers
22 views

How can I prevent the theming layer being loaded for JSON requests?

I can verify that views-exposed-filter.tpl.php is being loaded for basic JSON endpoints that don't re-render any form fields: My autocomplete - /search_api_autocomplete/...
2
votes
0answers
18 views

How to access the fields of a custom node variable in a custom Rules event?

I have created a custom Rules event, following the instructions in https://drupal.stackexchange.com/a/215857/16550 The event provides a custom node variable: function MYMODULE_rules_event_info() { ...
1
vote
2answers
53 views

System settings form data access validation

I have created system settings form for an image using managed_file. $form['my_image'] = array( '#type' => 'managed_file', '#name' => 'Upload Image', '#title' => t('Upload Image'), '#...
0
votes
0answers
14 views

Index Form API forms with Solr search

My site uses Apache Solr search and Apache Solr Multisite Search. I need to be able to index some Form API forms created in custom modules so that they return in search results. For instance, when a ...
1
vote
1answer
16 views

Can't send managed file as mail attachment

I'm working on a form submit in a Drupal 7 project, the form has and upload file field, in my form submit handler I can get the file id, what I want to do is to send and mail which has as attachment ...
-2
votes
0answers
20 views

How to make existing table in ckeditor responsive?

I am trying to make my existing ckeditor table responsive for mobile view. I am using responsive tables filter module for this. But this does not seems to work. I am doing the following steps ...
-1
votes
0answers
27 views

How to get an existing field programmatically

I'm using Drupal Commerce for a website and a big part of the payment tunnel is handmade, all the forms, submit. I need to add a new part with the customer profile form to get the customer billing ...
0
votes
1answer
22 views

Adding a filter to a view “or” remove results?

I've got a view that is trying to show three different content types (Lesson, Drill, Exercise), each with three different flags(Lesson Flag, Drill Flag, Exercise Flag), each of those flags have 3 ...
1
vote
0answers
27 views

How do I get the path of the favicon in a multisite?

I have a multisite website with multiple themes,each contains favicon. I have to show the favicon from the active theme in website. Admin page shown the favicon from admin theme or if favicon is not ...
1
vote
2answers
92 views

Hook menu url giving access denied for post method but working for get method

I defined a custom url using hook_menu and a custom delivery callback that returns json output. I wanted the url to work on the post method but it is giving access denied for requests done using the ...
0
votes
1answer
25 views

How do I enable an onclick event in a link on a form?

I am using the following code. $form['test'] = array( '#type' => 'link', '#href' => "javascript:;", '#title' => t('Show'), '#attributes' => array( ...
0
votes
0answers
13 views

Content moderation module that integrates well with Services (rest)

I am looking for a content moderation/workflow solution that will integrate with the Services module. I would like to update and transition the workflow state of a node using an api. Currently, I am ...
0
votes
1answer
12 views

How to set a multi line value from drush vset

I was trying to add a value to the drupal antibot antibot_form_ids variable. drush vget antibot_form_ids returns a string separated by /r/n Adding just a value to this string isn't just enough. If ...
0
votes
1answer
22 views

Hiding group_group field programmatically

I am trying to hide the group_group (request membership) field for organic groups based on a radio button. Here is what I have done that doesn't work: /** * Implements hook_form_alter(). */ ...
1
vote
1answer
20 views

Reindex Search API indexes for Behat testing

I tried to use index the newly created contents to be able to test a page, but the problem is most of the times the tests fails, because the indexing process not finished yet until the contents starts ...
-1
votes
0answers
11 views

Convert MENU_LOCAL_TASK to Vertical Tab?

I been working on a module and playing around with the menu API. It seems to be the only way to add tabs is MENU_LOCAL_TASK, but I don't like the look or layout of these tabs. I prefer to use them ...
-1
votes
0answers
10 views

How to display caption field under image in panel pane

I'm trying to output a field I added to the Image File type in Drupal 7: Structure > File types > Image > Manage fields > field_file_caption. Once the image is uploaded or selected from Media ...
0
votes
0answers
38 views

Upload a folder full of files (static html and assets) to the private files folder when creating a node

I need to be able to upload a folder full of files (static html and assets) when creating a new node and then to output a link to the index.html file in the uploaded folder. They files from a ...
0
votes
2answers
35 views

How to add javascript with #attached in a node which contains a specific paragraph bundle

I need to attach js in all nodes with a specif paragraph bundle. I know how to do this with drupal_add_js, but i prefer don't use it to prevent cache problems. I am trying with hook preprocess_entity ...
0
votes
1answer
17 views

Decimal number and Charts Module

I installed Charts with Google Charts in Drupal 7. Everything is ok, but when I have to use decimal numbers, with number 0.5 or 0.8, it appears to me .0 or .8 both on the vertical axis of my column ...
1
vote
2answers
38 views

How to get image path in view? [closed]

I have created a content type having two fields: Title Image (multiple image field) Then I create a page view for the same. Added these two fields. Now I have to create an external theming in view ...
0
votes
0answers
12 views

Adding menu of entity referenced links on a content-type page

I have this problem: I created content type named "DramaVoice" and "dramavoice" role. An user with this role can edit his own Dramavoice page, adding some demos and articles. I used entity reference ...
0
votes
0answers
32 views

Fieldset collapsed by default

I'm working on a Drupal 7 project where I use the form API to build a form. I want my form's fieldsets to be collapsed by default. I use the following code: $form['fieldset'] = array( '#type' =&...
1
vote
1answer
28 views

How can i use MATCH and AGAINST with db_select?

I have a query like: $query = db_query(" SELECT *, MATCH(field1,field2) AGAINST ('$s' IN BOOLEAN MODE) AS Relevance FROM {my_table} ORDER BY Relevance DESC, created DESC "); That ...
0
votes
1answer
24 views

How to programmatically get the Title for a Local Menu Task?

I have a long list of menu items so i'll cut it short here: $items['admin/skyview'] = array( 'title' => 'Skyview Main Page', 'type' => MENU_NORMAL_ITEM, 'access callback' => TRUE,...
0
votes
2answers
108 views

Adding field collections programmatically

I'm trying to add a field collection to my user account on an event, and it seems to be being created properly, the fields are updated as expected and it parents it to the user account, however, even ...
-2
votes
0answers
18 views

Display Block After some time using ajax?

I have alter the webform block after some times to display in page. for example. The Block should be display to the user after the one minute. I have rendered the block in some region and the block ...
1
vote
1answer
36 views

The following module is missing from the file system: (Theme name)

In D7, I'm getting many of these warnings: User warning: The following module is missing from the file system: bootstrap_barrio. For information about how to fix this, see the documentation page. ...
0
votes
1answer
45 views

How to override other module function/hook from my custom module?

I'm currently working on a custom module which holds a list of organization IDs that will be used to match with an attribute I get from a SAML idP response. I'm currently using the saml_sp SAML ...
0
votes
1answer
16 views

Finding entity/webform fields in the database

A bunch of user accounts were deleted and recreated with new UIDs, and so any webform submissions or entities that have fields pointing to the old UID are now broken/wrong. I already updated some UID ...
0
votes
1answer
10 views

Create link to email all views results

I have a view that outputs a list of email addresses. I'd like to find a way to set up a mailto: link that contains all of those as one comma-separated list. Could anyone advise?
0
votes
2answers
24 views

Drupal db select IN, group by count

need a bit of help please, when i write my query like this it works fine $query = db_query('select * from form_submissions where address in (select address from form_submissions group by address ...
0
votes
0answers
4 views

Limit theme_webform_element() to One Form for Placing Description Above Field?

I have a very long webform, more than 200 fields, where the description needs to go above the input/textarea and below the label, instead of below the input/textarea. I am using webform 7.4.x and I ...
0
votes
0answers
9 views

Link an Image field to a colorbox popup text field in pargraphs

I created a paragraph that collects an Image and some text in long format with no summary. How can I configure this so clicking on the Image displays the long format text in a colorbox popup? I can ...
0
votes
2answers
20 views

How to display fivestar average infos?

I am building a view with fivestar infos under the voting widget which look like this with the views preview: But it is rendered without the infos in the page: In both cases I'm an admin user ...
0
votes
1answer
22 views

Using JCF with dynamic forms

I want to use Javascript Custom Forms (JCF) to get more attractive and consistent looking forms on my Drupal 7 site. I've got it working to a degree, however when the form changes with AJAX, the new ...
0
votes
0answers
17 views

How can I allow multiple accounts use the same email address? [duplicate]

I am running multiple domains off of one install with Domain module. I need to allow users the ability to have separate accounts on each. I'm pretty sure I can alter the log in fine, but don't know ...
-1
votes
0answers
18 views

Ajax error on form submit

When I submit the form on the website(example: http://www.megatechnika.ru/node/109/ ) the form isn't sent to the server. And there is an alert showing with /system/ajax/ 500 error and a following text:...
1
vote
0answers
28 views

Why don't hook_file_insert() and hook_file_presave() need the cache cleared to work?

I think all hooks need the cache tto be cleared to work (or at least I thought until now), but it seems that these particular hooks don't need the cache to be cleared. I tried this even on a clean ...
2
votes
1answer
18 views

Override one line in core tabelselect jQuery behavior so custom checkboxes aren't affected

I have created a custom table using a Form API tableselect element, and within my table, I have embedded a checkbox form element that is checked based on an entity field (see here for details). The ...
0
votes
1answer
33 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
0answers
13 views

Entity reference Autocomplete widget performance issue on add/remove

I have created content type and using entity reference module.I am facing very slow performance on entity reference Autocomplete widget while add more or remove option in admin side. Its taking time ...
0
votes
1answer
20 views

Modify/Alter Password Policy Constraints Text

I'm looking for the easiest possible way to modify or alter the password policy constraints error text. The following is the default the users see. The password does not include enough variation to ...
4
votes
0answers
54 views

How to get a second join into hook_views_data?

I am trying to make the value of a string (name) found in mymodule_names.name available to Views by means of hook_views_data(). To get the name, I need to first look up the nid of the node I want ...
-1
votes
0answers
30 views

Convert Media tags to Markup in database

I am preparing my Drupal 7 site for redesign and need to convert the media tags in into HTML as they are saved to the database - not when the page is rendered. So, I need code like [ [ { ...
0
votes
0answers
22 views

Updating the delta value on a custom field

I have a content type with an image field and I am trying to update the delta value. I'm assuming the delta value is used to sort the images when they're rendered. (If there is a better way please ...
1
vote
1answer
14 views

Webservice args types automatic validation

It's a Drupal 7 with Webservices module, and there is a service with something like this (example): 'create-product' => array( 'operations' => array( 'create' => array( 'help' =&...
0
votes
0answers
18 views

How to create a chart based on role count?

I need to create a pie chart on commerce orders according to user roles (for example, how many orders for people with a specific role). I have tried with Views and Charts but the aggregation on user:...