Questions tagged [7]

Version tags should be used for questions that apply to a version only, not to merely say what version a site is using.

Filter by
Sorted by
Tagged with
0
votes
1answer
1k views

Pass parameter from a custom php function to hook_block

I have a hook_menu page callback. I want to use the argument which it receives in hook_block. For example function myCustomFunction($args) { } modulename_block() { // Use $args here } How can ...
0
votes
2answers
611 views

Drupal error. Drupal safe mode possible?

I added organic groups module to a drupal website. For some reason the website crashed and gives the following error: Fatal error: Unsupported operand types in /home/content/39/7384539/html/salvare12/...
0
votes
1answer
24 views

How to make a link type of a news automatically?

I made a content type what called news, and I have created a list(text) field type to grab the type of news and name it news_type and it's value is Sport, Health, Technology, Economic and others. I ...
0
votes
1answer
573 views

Hide user pictures from guests and web crawlers

I'm using Drupal 7 with Blog and Comments and user pictures enabled. The theme is Bartik. The user pictures are also used in the Flash game that is embedded in my website, so I can't just turn them ...
0
votes
1answer
2k views

“CSRF validation failed” when try to send POST request in custom module

This is my full codes. I want to create a node with service post method. But I cant post. "CSRF validation failed". I followed this tutorial: https://www.youtube.com/watch?v=Wz2uaRF9RGc Anyone ...
0
votes
1answer
1k views

How to get 'add more items' / multiple fields working when creating a custom content type's create/edit input form using templates and theming (D7)?

For single instances of each field, I've successfully followed arajashe's excellent answer for controlling what input fields get displayed in the content type's create/edit form here: https://drupal....
0
votes
2answers
1k views

Add a class to panel page body element

How do I add a class to a panel page's body element without having to add it manually in the variant configuration section? I want all panel pages to have a body element with the class 'panel-page'. ...
-1
votes
2answers
343 views

Importing nodes directly into database [closed]

I have created a custom content type and fields. i want to import data into content type. best solution for import data ? i can export of database for example .CSV .XML i don't know best solution ...
-1
votes
4answers
459 views

Use module to change custom type theme

I have built a module that adds a new custom type. I want to control the theme of that node type, and use a custom theme page for that node type. I can't find any documentation about this. How can ...
-1
votes
1answer
603 views

How to add existing fields to a custom form?

I have a custom form which shows the title field and a view embedded into the form. Both form and the view are updated via Ajax. I am trying to add the body field, but it is not showing up. This is ...
-1
votes
2answers
462 views

Drupal 7 upgrade Image module

I was upgrading a site to Drupal 7 but as you may know there are couple of modules which are moved to the core modules in Drupal 7. I had installed Image and Image Cache module in Drupal 6, but now ...
-1
votes
1answer
31 views

How to add fields while creating a node? [closed]

I am looking for a module which allows a user to create a new field while adding a new node. Is this possible, or should I resort to comma separated values in a big text area?
-1
votes
1answer
685 views

Can I create a table with hook_schema that has two timestamp fields?

For my module I want to create a table with an updated_on and created_on field, both of type timestamp. I found this can be done with mysql_type, but you need to specify a default value for that ...
-1
votes
2answers
38 views

How to create one more registation page in drupal site

In our drupal site we have a Registration page. and the new requirement is creating the one more registration page with same functionality(newly created registration page also use same database to ...
-1
votes
1answer
67 views

Captcha image is not detected but installed and working properly

I have installed Captcha and Image Captcha submodule (included in Captcha). It works perfectly, and displays the captcha image. However, when trying to install Captcha Refresh module, I found that ...
-1
votes
2answers
336 views

Is it okay to use PhP include() in body of basic page? [closed]

Aside from the usual warnings about using PhP, which I understand and am taking seriously, is there any drawback to using the PhP include() function in the "Body" box of the "Edit Basic page" form? ...
-2
votes
1answer
52 views

How to enable template while creating node

I want to enable different template for different node while creating node. for eg: I am creating blog1 node, then while creating blog1 node I should be able to choose template in drupal 7. Please ...
-2
votes
3answers
342 views

How to create a rule to email all users with a profile field X with same value as the current-user?

I'm using Drupal 7.57 and I have 2 roles in my website, role X and role Y. I want to compare a field (field_code_postal) of the X member profile of the current-user, with the fields (...
-4
votes
4answers
2k views

How do I change the admin password form PHPMyAdmin?

How do I change the admin password form PHPMyAdmin?

1 54 55 56 57 58