This tag is for questions regarding Drupal 7 specifically. Version tags should be used only when strictly necessary, for questions that apply to Drupal 7 only, and not to merely say "I am using Drupal 7 in my site."

learn more… | top users | synonyms (1)

0
votes
1answer
5 views

how to develop features delivered by drupal if there is no cms

I'm quite familiar with drupal, had done a few projects using drupal. I had an interview where the interviewer asked a few unexpected questions (atleast for me they were like unexpected!!). Few of ...
0
votes
1answer
12 views

Hook_form_alter in Views header PHP code

I have a content type called 'Checklist' which I bring forward using Views, in it's node-edit form. I wrote PHP code within the header in order to do this, here it is: <?php $view = ...
0
votes
1answer
15 views

Custom redirect for form-edit displayed in Views header

I have a content type called 'Checklist' which I bring forward using Views, in it's node-edit form. I wrote PHP code within the header in order to do this, here it is: <?php $view = ...
1
vote
0answers
25 views

Views performance issue

I have a website with 4 views (and sometimes 5 views) on the homepage. The problem is that when I try to open the website, it takes minutes to load and the cpu goes crazy because of mysql processes. ...
0
votes
0answers
10 views

Pathauto does not Transliterate when creating a node programatically (works when manually creating)

Drupal 7 Here is my code: <?php $languages = language_list(); // get all languages $preferedLang = "sv"; global $language; $language = $languages[$preferedLang]; $node = new stdClass(); // ...
0
votes
1answer
10 views

How to use long file description?

Is there any easy way to store a long text description of an uploaded file? I want to provide a long description field (textarea) when users upload files, so they can write as much as they need. ...
0
votes
0answers
21 views

How do I programmatically copy an existing Field to another Entity?

I want to add two new fields to the Commerce Discount entity --- an image and a long text. And I want these to be visible through Views. I was going to use this code to add the fields: ...
0
votes
0answers
6 views

Force views to write exposed form block info to {block} table during install profile

In a D7 install profile, I am trying to modify the location of a exposed filter block with db_update(), where the view is defined by a module's hook_views_default_views(). At this point it doesn't ...
0
votes
0answers
16 views

what are steps of development a drupal portal web site [on hold]

sorry! it may not be a drupal question but I need to ask people who have a drupal knowledge! I'm about to start a portal web site with drupal. in order not to have problems during development process ...
2
votes
2answers
24 views

Add a filter to my view before executing

I have a view and I want to get it's results. $nview = views_get_view('tasks'); $nview->set_display('page'); $nview->pre_execute(); $nview->execute(); If I have 'nid' filter added to my ...
0
votes
0answers
17 views

How to make a index.html file for your website

Would just like to ask a question in context of how to create a index.html file I will provide some info below in a brief paragraph so it's straight forward and easy to understand. I have a localhost ...
0
votes
0answers
5 views

Make a Search view have the same options as a Content view

I have created a Content view that works perfectly, believing I would later add facets to it once Solr is up and running. Now that Solr works together with Search API, I realize that to use facets I ...
0
votes
1answer
11 views

How to have search results from a views defined block display on page?

I have created a custom search block with Views 3 in Drupal 7. I would like the results of that search be displayed in a page (like the default drupal search block) and not in the block itself (which ...
0
votes
2answers
23 views

Add extra fields to a node display

I want to add extra fields when a node is displayed, the data of this fields are fetched from an external db. I'm uncertain if I've to use the hook_node_view_alter function or hook_node_view.
0
votes
1answer
16 views

Search keyword with selectable exposed filters

I'm trying to make a search view with one textfields and two checkbox filters (body, tags). The search text would only search the selected fields and would show results as summaries. I've tried ...
0
votes
0answers
14 views

EntityMalformedException: Missing bundle property on entity of type taxonomy_term

i have strange behavior that when i visit www.mysite.com/taxonomy/term/516/sdfsdf i get EntityMalformedException: Missing bundle property on entity of type taxonomy_term. in entity_extract_ids() ...
1
vote
1answer
40 views

Does entity_save() trigger the update event?

Not quite sure if calling entity_save() from code will trigger the update event or not. So, does it? Thanks
1
vote
0answers
23 views

List those nodes which are not referenced through a reference field in other nodes?

I have content type which has a node reference field of the same content type. I want to list only those nodes which are not referenced through this node reference field in any other node. Is it ...
0
votes
0answers
9 views

SearchApiQuery - possible to remove a filter?

The query parameter that is passed to search_api_query_alter has SearchApiQueryFilter member. It contains a protected array of filter elements. I can add to this by calling the createFilter() and ...
0
votes
0answers
5 views

Pull Admin Comments into Ubercart with Rules

How do I pull an Ubercart admin comment in with a rule? I've got an ubercart order and I'm trying to do a check to see if it was created programmatically by an admin, but the way I was going to do ...
0
votes
1answer
16 views

Hook the language switcher and change the URLs it redirects to in Drupal 7

I have a multilanguage site in Drupal 7. The language negotiation is based on URL. I have got translated content, so when I visit www.example.com/this-is-a-news in English, I can change to Spanish ...
0
votes
1answer
29 views

What all is required to completely uninstall Webform?

After disabling and uninstalling Webform, I noticed that it appears to still be active. Existing Webform content are all still there and accessible. Apparently this is intended behavior. I can delete ...
0
votes
0answers
6 views

How to add the date after an URL when missing [on hold]

I have a menu item named "Meeting Rooms" with a path "/meetingrooms/2015-02-28" where that date is always today (in ISO format) if not supplied. I wrote a module that checks $arg[1] and if empty sets ...
0
votes
2answers
22 views

Drupal set message class

I've been trying to add a class to a drupal_set_message() function. i found one article that said it worked, but i could not get it to work on mine. am i missing something? I have ...
0
votes
0answers
17 views

get last element in URL(menu item) generated by hook_menu

I have created a URL/menu item via hook_menu, and in the proprocess_html I'd like to get my item (last element in the URL) (/test) without using arg(0). I can do it in PHP but I was wondering how it ...
0
votes
0answers
13 views

Trouble picking up Open Graph tags on page load

I am having issues doing a simple jQuery select to pick up the content of an open graph tag. The website this is an issue on makes heavy use of ajax, every page is loaded in via an ajax call. The ...
0
votes
0answers
6 views

How to insert “block” into nodequeu

my client uses nodequeue to decide (in frontpage) which nodes to show and I want to permit him to insert two ads block whatever in the queue. Is it possible ? How ? Thanks.
0
votes
0answers
19 views

Resubscribe user programmatically to a group

I try to programmatically subscribe a user to a group. My code works fine, if the user was not a member before. But when i remove a user as a member of the group and try to subscribe the user again, ...
0
votes
3answers
28 views

Expand region to fill screen size

I have a splash page where the user will choose a language before entering the site. This page only needs the header region and a background image (for the #main-wrapper div) that should occupy the ...
0
votes
1answer
14 views

How to get the vocabulary terms for the current language

How do I programmatically get all the terms within a vocabulary for the current language? This is a similar question to Get translated term name, but not for a single term, but for the entire tree.
0
votes
1answer
9 views

Clean Urls without HTACCESS on WebDav server

I am not able to have a .htaccess on my webdav server. Am I completely out of luck to use clean urls on my Drupal 7 install? If not, how do I go about this? I've read a ton of posts, but they all ...
0
votes
1answer
19 views

Contextual Filters in a 'Tree-style' View

I am using the Views Tree Module which allows me to create a View that illustrates parent-child relationships. My 'associations' go like this: I have 3 content types which entity-reference each to a ...
0
votes
2answers
20 views

Internal URL or menu callback to use node/entity content without html/page wrapping

Does anyone know, if there is any work-around or regular setup for panels or custom code known, to be able to use a url/node/%id or node menu-callback to render node/entity content delivered without ...
0
votes
0answers
9 views

error: “hw.ncpu” is an unknown key [on hold]

I am using omega 4 theme. When I running guard through drush omega-guard it gives an error error: "hw.ncpu" is an unknown key beside this it works absolutely fine. 14:12:38 - INFO - ...
0
votes
0answers
13 views

Configuring views to display book pages as teasers, in the correct order

I am trying to display book pages as teasers, on the book cover node. I created a Views block and display it under the parent node. Book relationship is added, and a contextual filter as well. ...
0
votes
0answers
18 views

To use some hook instead of “PHP contextual filter code” in view

Can anyone please give a solution on having a substitution of "PHP contextual filter code" for views, inside a module code?
0
votes
1answer
13 views

How to change Omega subtheme's layout for a view

I sense this can be done with Context etc, but it doesn't feel right to issue a few more modules for the job of a few lines of code. Something like the following has to fit this: function ...
-5
votes
0answers
25 views

Football fansite in Drupal [closed]

I want to develop SSC Naples football fansite in Drupal. I want to have in this site: Seasons(for example Season 2014/2015, Season 2015/2016 etc.) In every season I want to have Competitions(for ...
0
votes
0answers
13 views

How do you sort alphabetically taxonomy CHILDREN terms in a parent?

I'm currently using Drupal 7 taxonomy manager. I have a big list of taxonomy terms and organized with child/parent relationships. I want to only alphabetize certain children in certain parents. How ...
0
votes
0answers
12 views

Handle formatting of longtext value for entity wrapper

So I have a working setup where some code pulls in the latest Wikipedia extract of a page. I then use Entities to handle a node creation, adding the contents of the extract to the longtext value of ...
0
votes
2answers
15 views

Media Module Bulk Upload for Image Field

Using Media 7.x-2.x-version I am trying to use the integrated Bulk Upload Module. I have activated Media Bulk Upload sub module as part of Media. Now if I use a image field with media selector I can ...
0
votes
0answers
6 views

Scald and lightbox display for Atom Reference

I am using Scald with Drupal 7 and try to figure out if there is a possibility to display an Atom Reference field with images in a lightbox style. I am configuring display settings for Scald image via ...
0
votes
1answer
6 views

how to filter view having three group with one or and two and group?

I am having a view with three group filter i want to add condition like this Example Below: group1 field1 (and) filed2 AND group2 field1 (or) filed2 OR group3 field1 (or) filed2 what ...
0
votes
0answers
22 views

no css/javascript when anonymous

I finally was able to fix my site in our stage environment until I logged out of the admin section. Now the site has no css at all. All the html seem to be fine. If I login as admin, the site is still ...
0
votes
1answer
13 views

How to set permissions of creating content only for referenced users

I have 2 content types: Courses and Documents. In Documents there is a node reference field which connects it to Courses (actually with a Node Reference URL Widget). In Courses there is a user ...
0
votes
0answers
5 views

addExpression() and FROM_UNIXTIME format [duplicate]

Having some trouble figuring this out, all of the examples I have looked at make it appear that what I have done is correct. Here is my query: $query = db_select('webform_submissions', 'w'); ...
0
votes
2answers
16 views

Get view via php based on page number and 1 argument (uid)

I have a view that it has an contextual filter based on "uid". Now I need to get it via PHP and I can use views_embed_view(). But I need to get only page FOO or page BAR and views_embed_view() ...
0
votes
1answer
21 views

Show contact form in block only, not page?

I'm using the Contact and Contact Form Blocks modules to create a contact form and display it in a block. The problem is that the Contact module creates a page but I don't want a page, only the ...
0
votes
2answers
21 views

How to set static field on Display Suite

i would like to set a static field using Display Suite in Drupal 7 but don´t know how. It´s a text snippet that won´t change so i want to place it using a field. Can somebody help me how to do it? ...
0
votes
1answer
25 views

How to have on-page comments in Drupal 7?

Currently, if you enable threaded comments on Drupal, the user has the ability to click on "reply". This takes the user to another page where they can write the comment. I want this functionality to ...