This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @Then /^I should print page to "([^"]*)"$/ | |
*/ | |
public function iShouldPrintPageTo($file) { | |
$element = $this->getSession()->getPage(); | |
file_put_contents($file, $element->getContent()); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_field_attach_create_bundle(). | |
* | |
* When creating a new vocabulary attach the right fields. | |
*/ | |
function my_module_field_attach_create_bundle($entity_type, $bundle) { | |
if ($entity_type != 'taxonomy_term') { | |
return; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_og_fields_info(). | |
*/ | |
function my_module_og_fields_info() { | |
// Note: from the features export the item name is "field_my_field", but we | |
// better not keep the "field_" prefix. | |
$items['my_field'] = array( | |
// Type of the new OG field. 'group content' since we want to add it to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Sample "Hello, World" Application</title> | |
</head> | |
<body bgcolor=white> | |
<table border="0" cellpadding="10"> | |
<tr> | |
<td> | |
<img src="images/springsource.png"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "rules_clone_subscription_order" : { | |
"LABEL" : "Clone subscription order", | |
"PLUGIN" : "reaction rule", | |
"REQUIRES" : [ "rules", "commerce_paypal_ipn_rules_integration", "commerce_checkout" ], | |
"ON" : [ "commerce_paypal_ipn_rules_integration_ipn_process" ], | |
"IF" : [ | |
{ "data_is" : { "data" : [ "order:status" ], "value" : "completed" } }, | |
{ "data_is" : { | |
"data" : [ "txn-type" ], | |
"op" : "IN", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "rules_notify_amdin_on_ipn_cancellation_message" : { | |
"LABEL" : "Notify amdin on IPN cancellation message", | |
"PLUGIN" : "reaction rule", | |
"REQUIRES" : [ "rules", "commerce_paypal_ipn_rules_integration" ], | |
"ON" : [ "commerce_paypal_ipn_rules_integration_ipn_process" ], | |
"IF" : [ | |
{ "data_is" : { | |
"data" : [ "txn-type" ], | |
"op" : "IN", | |
"value" : { "value" : [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "rules_set_subscription_while_checkout_via_paypal" : { | |
"LABEL" : "Set subscription while checkout via paypal", | |
"PLUGIN" : "reaction rule", | |
"REQUIRES" : [ "rules", "commerce_paypal_ipn_rules_integration" ], | |
"ON" : [ "commerce_paypal_ipn_rules_integration_paypal_wps_redirect" ], | |
"IF" : [ | |
{ "entity_has_field" : { | |
"entity" : [ "order:commerce-line-items:0" ], | |
"field" : "commerce_product" | |
} |