-1
votes
0answers
6 views

Submit not executed

Why is my submit function never been executed? /** * Implements hook_menu(). */ function simpleexample_menu() { $items['simple-example-page'] = array( 'title' => 'Simple Multi-Step Form', ...
0
votes
0answers
5 views

Need to add custom element in sitemap.xml file

I have installed sitmap module to create sitemap.xml file. Now I want to add some custom element like <expires>2010-10-10</expires> for some URLS.
0
votes
1answer
12 views

filter to remove external links from text

Do you know about a way to automatically remove external links after user submits node? I want to keep only internal ones. I am not able to find any text filter or module which does that. Thank you ...
0
votes
0answers
4 views

How to not let users remove the entity reference once they added

I'm using D7. I have one content type, let's say Content-A. And, the Content-A has a field whose field type is Entity Reference. Content-A's authors can reference other user with the content through ...
0
votes
1answer
6 views

how to get searched item value in search form

how do I get the value of searched item value, if I searched for "cat" in a search box then it also displays on a search page?
0
votes
0answers
5 views

Pagination in search search results

I have installed search configuration module to alter pagination on search results and set a number of results per page to two in config>search settings>ADDITIONAL NODE SEARCH CONFIGURATION>RESULTS to ...
0
votes
1answer
17 views

Custom 404 - menu disappears

I have created a custom 404 page using hook_preprocess_page(): function THEME_preprocess_page(&$variables) { $header = drupal_get_http_header('status'); if($header == '404 Not Found') { ...
0
votes
2answers
30 views

What are some examples of filter Correct faulty and chopped off HTML?

In Drupal one of the text filters that is enabled by default is the filter Correct faulty and chopped off HTML. As I understand it must fix HTML bugs. Can anybody please give some example(s) of ...
0
votes
0answers
11 views

how to fill some fields depent on the value of a list box

remember the create password page of Drupal! while you are entering characters it tells you how string is your password! now I want to have something like this in a list box but a bit different. I ...
0
votes
1answer
9 views

How to display an add to cart button for each product displayed in my views grid?

I am creating an online store, for which I am using the Views module (grid) for product displays. I want a 'Add to cart'-button to appear for every product displayed. How can I do so? Note: I can ...
0
votes
1answer
15 views

Drupal fails to send password reset mail

Drupal (7 and 8) does not send mail from password reset form and I can not find any bug or failure. More interesting is that it does send mail notification that there is new drupal version. I have ...
2
votes
1answer
10 views

Could someone explain the 'hit' and 'miss' status in memcache per page output?

I've instructed memcache to append stats to each page. Someone did an excellent job explaining the memcache reporting page. However, I've since stumbled upon this appended information shown below and ...
0
votes
0answers
8 views

Translating MS Access First() for Drupal db_x() [on hold]

I have a rather complicated query running on an ASP site that I need to port to Drupal. It uses several calls to First(), an Access-specific function similar to TOP and LIMIT in SQL Server and MySQL. ...
0
votes
1answer
17 views

Foreign language registrants redirected to home page after registration

D7: When someone registers an account in English (default language) the registrant is redirected to the Login page with a message: "A welcome message with furthe instructions has been sent to your ...
1
vote
0answers
21 views

How to set permissions of fields programmatically?

Using field permissions module, How do I can set/edit permissions of fields to the roles? I took a look at its module but I couldn't find out how it stores its permissions in the database.
0
votes
0answers
18 views

Adding Specific CSS to View

How would one go about trying to accomplish the following under Views in D7: Say I have four different content types (apples, oranges, kiwis, and mangoes) which are culminated into one view listing ...
0
votes
0answers
6 views

Views Exposed Filters Ignoring Default Value

I have a view set up that uses ajax to provide a list of choices based on the choice of a radio button. All I am trying to do is get a default value to appear on the first page load. Instead I get " ...
1
vote
1answer
19 views

Save my link configuration with drush or else?

I just modified my database so I can translate 2 link from a block that I made. The translation won't show up until I go here admin/structure/menu/item/1022/edit and press Save. I would like to know ...
0
votes
1answer
14 views

7 - Download file and generate page

I've got a form that gathers some data. The data is then modified and should be passed to the user as a file. To manage this I did the following: header('Cache-Control: must-revalidate, post-check=0, ...
0
votes
0answers
7 views

How to save multi select value in list field in node programmatically

I need to programmatically save multi value in list text field in Node. E.g. I am having multi select drop-down of language field, I am getting value in $languages = array('English', 'French', ...
0
votes
1answer
10 views

Custom styles on labels in views?

I would like to create custom styling for the label in a field for a table in a view. Is this possible within the view edit page? Or will I have to define a custom CSS class and write the styling in ...
0
votes
0answers
8 views

swap out rendered media item on same page with new url

Using Media and a few Media: [Service] modules to provide a website where the point is to provide all mirrors to a video under one page So the way I have this set up currently, is that each Video ...
1
vote
0answers
8 views

change fields permission in rules module

I installed field permissions module to grant access of the individual fields to the roles. I need to change some fields permission when an event occurs. How do I can add the field edit permission to ...
0
votes
0answers
8 views

Drupal 7 field sharing between translations of a node

consider I have a content type which I want to be translated to 5 language ! and also consider that my content type has 10 field which 7 of them are some numbers and 3 of them are text ! absolutely ...
0
votes
1answer
20 views

How to call a javascript function?

I have included in my theme a new javascript library(Easy-Responsive-Tabs-to-Accordion) which converts horizontal tabs to accordion. So I have included in my .info theme scripts[] = ...
0
votes
2answers
15 views

Users cannot log in to new site in multisite

I am working with the Drupal multisite functionality. I have been asked to implement the following architecture: mysite is a Drupal site with several angular pages. mysite/backend is a separate site ...
0
votes
1answer
12 views

db_query() not compatible with IN operator?

I ran into a snag setting placeholders for the IN operator, and then I ran into a webpage that basically says, if I'm reading it correctly, that they are not compatible. I also found a forum post on ...
0
votes
0answers
12 views

Permissions to edit content type not working

I am wondering if I have missed some place obvious. I have permissions set for the role "editor" to be able to edit several content types. It is working for all but one of these types. We are also ...
0
votes
1answer
16 views

How to add custom content before hook_form()

Form uploads image and if image is uploaded I'd like it to be displayed before the form. What is the right way to do this?
0
votes
0answers
16 views

User profile edit form cannot be submitted

I'm changing user profile edit page to reorder input fields and put them in div tags. I have added following code into template.php. function MYTHEME_theme() { $items['user_profile_form'] = array( ...
0
votes
0answers
8 views

Add alt attribute to a leaflet marker

I have a structure of a leaflet showing the current marker $marker = array( 'type' => 'point', 'lat' => $lat, 'lon' => $lon, ); // Add icon only if we got url (most of ...
0
votes
0answers
10 views

How do I programatically generate multiple “add to cart” forms on product display?

I've got a matrix of 12 products, which can be added to the cart by users after selecting different term reference fields, which then select the appropriate product. This is shown on a product ...
0
votes
2answers
13 views

webform2pdf blank page

I am using webform2pdf. I'm having an issue with the download PDF button; it goes to a blank page when it goes to a path like /node/3/webform-results/downloadpdf. Does anyone have a fix for this?
0
votes
1answer
10 views

Adding background color to table rows

I was wondering if it is possible to change the background color of a table row. I want to display certificate files, and if that certificate is going to expire in longer than 30 days the color green ...
0
votes
0answers
5 views

Restrict Taxonomy Terms in Media browser with respect to domain with domain taxonomy module

I am having Single Vocabulary with some terms defined say: Term A Term A Child Term B Term B Child Term C Term C Child Also I have installed Domain Access module for multi-domain setup. I ...
0
votes
0answers
7 views

Send e-mail upon signup for an event with entity registration standard email

I am working with the entity registration module and works good, has many good features. But is has no feature for a confirmation mail to the user that just signed up for an event. Through the Rules ...
0
votes
0answers
8 views

Print Profile 2 Field in page.tpl.php

I have a page--*.tpl.php where I want to print some field from my user profile 2 profile. I am currently doing it like this: <?php print render($profile-type->field_name['und'][0]['value']); ...
1
vote
1answer
20 views

Views - Edit, view, delete node in dropdown

In facebook, on every post, there is a little arrow in the corner with content about that post. Is there a Drupal Module which allows me to achieve this? What I want to do is: I have different ...
0
votes
0answers
16 views

Write permission for Drupal's file system in pantheon hosting

Am having my site in three different kind of environments like Dev,Test & Live under pantheon hosting. The file systems for Dev & Test are working fine and those are in write permissions ...
0
votes
1answer
12 views

Is there any Russification of the Simple MCQ Drupal 7 module?

Is there any Russification of the Simple MCQ Drupal 7 module? How to translate it? Thank you
0
votes
1answer
23 views

Two commands won't work with drush

I try to run typical commands like drush cc all or drush pm-uninstall while in the folder of my local site (in my pc, win 7 sp3), and yet I get error say: "'mode' is not recognized as..." ...
0
votes
1answer
17 views

php in views contextual filter for different user roles

I am attempting to filter a view based on a php contextual filter, however the filter needs to come from different sources depending on the users role: administrators - from a query string all other ...
0
votes
3answers
27 views

Selectable labels in fields

Does anybody know if there is a module to make labels of fields selectable, for instance Field course: Abc in DCT 123 today listening pop so if I select 123 today, in my content display I would ...
0
votes
0answers
13 views

add function on date selected through date popup field

I am using Date popup module for selecting a date in a registration form. Is it possible to fire an event on date select?
1
vote
0answers
28 views

How can I find which modules alter my form?

Is there a way to debug the list of modules which alters my form (using form_ID). I can get a list of modules implementing hook_form_alter using module_implements('form_alter') but how can I know ...
1
vote
0answers
13 views

Services 3 - how to create a file in the private files directory

Is there a way to save files to the file endpoint but to the private folder rather than the public.
0
votes
0answers
14 views

While making custom URL, Meta tags is not displaying custom URL?

I'm using drupal 7 and using meta-tag module, while inserting the custom url I'm not able to get the custom url display in the source code. If i insert in meta-tag page title: user [node:title] | ...
0
votes
1answer
21 views

DRUPAL launches install.php when accessing an existing site with an alias [on hold]

We have setup several sites with AEGIR. We use aliases to access the sites. Example: sitea.example.com is defined as domain name of the site in AEGIR, but we want to access this site as ...
0
votes
1answer
18 views

How to make custom template for search results

I have developed a custom search module that is working perfectly. Currently I am using the existing "search-results-tpl.php" and "search-result-tpl.php" for showing search results. But I want to make ...
0
votes
0answers
11 views

Hidden Content in nodes of my basic pages. Who can I solve this problem? [on hold]

I have tried to check on the view permissions to see how I can troubleshoot this issue but I have failed. I need someone's assistance.

15 30 50 per page