Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 49776

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

0 votes

How can I add a custom price to a cart as an attribute of product type in Drupal Commerce?

Use the following functions : $line_item = commerce_product_line_item_new($product, $quantity, $order_id, $data = array(), $type); // You can add the required additional price components here. …
Hardik Rawal's user avatar
3 votes

hook_node_validate called on delete?

You could check the Triggering element in the Form State for the button that triggers the Form Submission. function MYMODULE_node_validate($node , $form_state , $form) { if ($form_state['triggering …
Hardik Rawal's user avatar
0 votes

How to add image to only front page of Drupal 7?

Add the page--front.tpl.php into your theme folder. Print the image in this Tpl. For further info on front page template files refer - Customize the front page template
Hardik Rawal's user avatar
0 votes
Accepted

Render a custom form in a custom template

You need to render your form in the template. Simply calling drupal_get_form won't suffice. To render the form use following: drupal_render(drupal_get_form('form_nam')) You also need to ensure the f …
Hardik Rawal's user avatar