All Questions
0
votes
0answers
4 views
Removing field wrapper in a form
I would like to theme a form, and the div wrapping my text input element prevents me from doing what i want. So i got this right now :
<div class="form-item form-type-textfield ...
0
votes
0answers
2 views
Read field value as string on login
In a custom module of mine (7.x), I succesfully call
allocation_user_login(&$edit, $account)
when the user logs in.
The next step for me is to read the string value from the field field_group ...
0
votes
1answer
3 views
Does the Full HTML format allow all tags, and is there an Input Filter without built-in restrictions?
Does the Full HTML format allow all tags, and is there an Input Filter without built-in restrictions? The built-in Drupal filters and some of the other filters I have checked seem to come with their ...
0
votes
1answer
11 views
Drush clear cache without the codebase
Is possible to clear the cache using drush (or else?) when I don't have the codebase anymore.
Here is the use case: I deleted the codebases of a lot of sites with backing up. Now I'm going to backup ...
0
votes
0answers
8 views
individual role permission rather than automatic selected
I have used that module but can't remember the name & can't find it anywhere.
Suppose I have 4 roles in the site:
Anonymous user
authenticated user
Elite user
administrator
As you know, Drupal ...
0
votes
1answer
6 views
How to show contextual links buttons in templates with minimal markup?
I want to get rid of the most markup in Drupal 8 templates, but still want to have working contextual links. How to do this?
0
votes
0answers
4 views
Page with disclaimer
I am developing a website in drupal. Wanted whenever a user enters in the site appears to a page with a page with a disclaimer and only when you agree to the conditions he enters the site.
What can I ...
0
votes
0answers
7 views
How to make tags listed by activity?
let say i have two tags in my website.
one is football and the other is basketball.
and let say that i have 3 articles tagged with football and 10 tagged with basketball.
and the total comments and ...
0
votes
0answers
7 views
7: How to correctly add meta tags to custom menu items?
I want to be able to use the meta tag module for everything my site, but currently I have no idea how to add meta tags to custom pages. For example, I have this page:
function mymodule_menu()
{
...
0
votes
0answers
6 views
How would I add a user rank in their profile in drupal 7
hi i'm very tired for search this (How would I add a user rank in their profile in drupal 7).
you know i want to have rank every user . a simple -> amin rank is 18 with 300 point .
if you know that is ...
0
votes
0answers
10 views
is it safe to chmod -R 777 ~/www/sites/default/files? [duplicate]
Since drupal 7.34 drupal doesn't display images anymore.
I tried editing .htaccess and other things.
The only thing that seems to work is to change permissions of the files folder and its subfolders ...
0
votes
0answers
11 views
Hide page title on specific path
I want to hide page title on a specific path, but I want to retain the page title between "title" tags in the header. I want the title to be exist in title bar of the browser, but that should not be ...
0
votes
0answers
11 views
Need help in commerce_discount userpoints [on hold]
I am getting this error on checkout page while using commerce_userpoints as discount.
EntityMetadataWrapperException: Unknown data property commerce_product. in
...
0
votes
0answers
10 views
auto confirm authenticated user to Drupal Newsletter Module
I tried to make auto confirm authenticated user to Drupal Newsletter Module but i failed. in other words... is it possible that users do not receive a verification email and immediately confirmed?
I ...
0
votes
0answers
7 views
Drupal Webservice api for fblogin and twitterlogin
I have to create an mobile app where user should login into drupal from their fb or twitter accounts. I have created an api to login into drupal but should I also need to paas the oauth token from ...
0
votes
2answers
17 views
Does Drupal strip out style and span tags?
I was trying use span and style tags in pages, rather than in CSS and it seems that Drupal is configured to strip them out whether the input format is Filtered HTML, ie they are applied to Full HTML.
...
0
votes
0answers
10 views
Simple hierarical select & responzive theme [on hold]
Good day community. Immediately apologize for my English. Please tell me what to do in this situation. We have responzive teme & module Simple hierarical select I want to bring in the right kind ...
0
votes
1answer
9 views
Alternate title replacing Product Title
This is a combobox showing a group of product referenced.
I have created an extra field in product list, short_title. How do I replace the Product Title with short_title? i.e. Chicken, Turkey, ...
0
votes
0answers
13 views
View Mode not showing up under Manage Display
I created a view mode let's call as my_node_view for content type under display type settings, I was expecting it to show along with default and teaser tabs as default|teaser|my_node_view in manage ...
0
votes
0answers
6 views
Add a common class for <li> under the same parent in Taxonomy Term Reference Tree Widget
I'm using D7. I'm using Term Reference Tree module.
I'd like to add a common class to <li> tags that belong to the same parent. Because I want to set a class that works all of <li> tags ...
0
votes
1answer
7 views
Why doesn't $query->hasTag() work with this view?
Below I have a View. I have the following hook. I'm hoping to modify the WHERE clause of the view, but the following code seems not to be called.
function ...
0
votes
0answers
10 views
Why is Commerce collection products view not firing in hook_views_query_alter?
Using Commerce Kickstart 2. I want to modify the query of the included View 'collection_products'
As a start, I added a mymodule_views.inc file with this code:
function ...
0
votes
0answers
7 views
Can the entityform Redirect field be dynamic
I have a link to an Entityform on my site from multiple pages. I need for it to redirect back the page it came from. There are 5-6 pages that link to it. Is that possible??
I have tried tokens coming ...
0
votes
2answers
19 views
passing a user id to user_is_logged_in function
I want to use the user_is_logged_in function to determine if a user is logged in but i want to determine if that user is logged in from a cron job/ module.
Essentially i have an array of user id's ...
0
votes
0answers
13 views
Roles Machine name instead of role id
I have custom module code that check the user role and based on user role, user fields updated,
for example
if(array_key_exists(12,$user->roles)) {
//Manger
$role = array(8=>8);
} ...
0
votes
0answers
19 views
Where does Drupal use Cross-Site Request Forgery (CSRF) tokens? [on hold]
Is there a way to find out if a Drupal instance has a CSRF tokens used anywhere? And how do we find out if those tokens are vulnerable?
PS: For all of those giving negative rating. This info is for ...
0
votes
1answer
14 views
Permission base on the administration menu?
I have used hook_permission to limit user for some places and to created a permission rule. However, I have not combine two permission from another modules for my custom module.
I'm working on a ...
0
votes
0answers
8 views
AJAX Webform graphical bug?
I am using https://www.drupal.org/project/webform_ajax for Drupal 7. I have a webform that is being submitted using ajax with the module above. heres what the form looks like:
however, if i submit ...
0
votes
0answers
11 views
omega 4 can't import external libraries Primary tabs
I am learning to work with omega 4, but I have problem with importing external libraries. I am using PhpStorm and it shows that it cannot resolve import.
source 'https://rubygems.org'
group ...
0
votes
1answer
15 views
Drush Update to a patched module?
What happen when you drush up update a module with Drush because of security issue and the module contain few patches for other features?
The reason why I'm asking is because I have patched few ...
0
votes
0answers
2 views
views handler: How to combine 2 columns of a table to identify the correct one
I have an entity table and a joined table. The joined table has 3 columns:
ID,Language,Value
Supposed there are 2 languages, let's say German and English, the resulting view gives 2 results, because ...
0
votes
0answers
8 views
Response time of server very high for Drupal pages - not for PHP pages [duplicate]
I have an installation of Drupal in a dedicated server. It apparently loads very fast, but when I use tools for webmasters, I see the Warning of too high response time from server, of about 0.36 ...
0
votes
1answer
12 views
Is it possible to disable CSS and Javascript aggregation by role?
Is it possible to disable CSS and Javascript aggregation by role?
That way during content editiong or administration stages the user is not affected and can check the CSS alright, while end users ...
0
votes
1answer
11 views
User can change `Moderation State` on content without having permissions to do so - Workbench
I am using Workbench, Workbench Moderation and Workbench access.
I have a content manager role, who should be able to only create unpublished content, edit content that is flagged as Needs review and ...
0
votes
1answer
11 views
After Creating A new User inside RULES, I can not access to UID
In my rule, I have an action that is "create new entity" with "user" bundle.
every thing works fine a new user create with provided information (user and email)
it's variable name is new_user
in ...
0
votes
0answers
7 views
Hijack node wildcard loader function?
It seems that there is no way to alter auto loader function for wildcard menu item. If you define menu item like this:
$item['node/%node'] = array(
// Blah blah blah
);
then the wildcard loader ...
0
votes
0answers
6 views
Use flag fields in or as nodes
I love flag fields. Use of flag+fields produce an elevated level of flexibility and are great for some custom functions out of the box. I have a text field added with a flag that I use.
However, I ...
0
votes
0answers
7 views
Views not showing all all field options
Problem: I'm trying to add Views Filters to this display, but I cannot see any of the fields attached to this Content Type.
Question: How may I create exposed filters on these two fields Showcase ...
0
votes
1answer
8 views
Autocalculated price field depending on language
I need field for my own content type that will show price in currency depending on chosen language (from i18n module) calculated by currency exchange rate from currency module.
I've installed money ...
0
votes
2answers
23 views
Command pm-enable needs a higher bootstrap level to run
i've been scouting the forums for the past two days trying to get an answer to my problem, i'm new to Drush but pretty good with Drupal. my environment is as follows:
- centos 6
- php 5.3.3
- drupal ...
0
votes
0answers
7 views
Search Api Autocomplete view all results html
We're experiencing a problem with 'view all results for:' functionality on our solr search.
if i keyword search, i get a list of nodes which match the keyword that works fine. if i click the view all ...
0
votes
0answers
15 views
Features and Git
What is the best way to synchronize the database changes between development and production environments when enabling a new module? May I use Features as frequently as possible, or just push code ...
0
votes
0answers
11 views
Theming generic module output
I'm trying to get my head arround the way modules theme their output in drupal.
I know that if I have a module that returns a list, I can theme it with theme_item_list(). So I first produce the ...
0
votes
1answer
18 views
How to alter cck field title using hook_form_alter?
I want to change #weight, #prefix, #title for a cck field.
First I tried the following code.
function test_form_taxonomy_form_term_alter(&$form, &$form_state, $form_id) {
//Working
...
0
votes
0answers
10 views
How do I know how many items are on a page for a json object
Im trying to make a view that contains JSON data for a list of articles in another view. I have all the data about every article but I also want to add the number of articles per page and the total ...
0
votes
0answers
11 views
Field template not being rendered
On our company website we have a people page which amongst others has an image field called 'field_photo'
This is being rendered using the following:
<?php print render($content['field_photo']); ...
0
votes
1answer
15 views
It is possible to create custom theme function?
I want for example to create a mytheme_table function to override theme_table etc. (in template.php) but I do not want to use it everywhere in my project.
I need to replace the table with a div or to ...
0
votes
0answers
10 views
Problems with accessing private files uploaded via file field in a webform
I have a webform with a file field configured to private files. When I'm logged in as a superuser (uid=1) and trying to download the file, I get access denied.
I was trying to debug this, and this is ...
0
votes
0answers
6 views
Drupal Search Api reverse entity relations
I have a node which have entity reference to user,In search API,my need is to take user as type,how can i get this relation in search fields as for now iam getting no relationship between them
...
1
vote
0answers
16 views
How do I profile my drupal site which is on shared hosting?
I run a commerce website in a shared hosting, from time to time it's being too slow, I tryied many ways to find the cause (css/js agreggation,enable caching, views caching, disabling some big modules ...