This file contains 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_chicama_pay_one_day" : { | |
"LABEL" : "Chicama pay one day", | |
"PLUGIN" : "reaction rule", | |
"OWNER" : "rules", | |
"REQUIRES" : [ "rules", "commerce_product_reference" ], | |
"ON" : { "commerce_product_calculate_sell_price" : [] }, | |
"IF" : [ | |
{ "entity_has_field" : { "entity" : [ "commerce-line-item" ], "field" : "commerce_product" } } | |
], | |
"DO" : [ |
This file contains 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 | |
global $language; | |
$main_menu = menu_tree_output(menu_tree_all_data('main-menu', NULL, 2)); | |
$menu_principal = menu_tree_output(menu_tree_all_data('menu-menu-principal-espanol', NULL, 2)); | |
?> | |
<?php if ($language->language == 'en'): ?> | |
<?php print drupal_render($main_menu); ?> | |
<?php elseif ($language->language == 'es'): ?> | |
<?php print drupal_render($menu_principal); ?> |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
/** | |
* Implements hook_menu(). | |
*/ | |
function email_contact_menu() { | |
$items['email-contact/%/%/%'] = array( | |
'title' => 'Email Contact Form', | |
'page callback' => 'email_contact_mail_page', | |
'page arguments' => array(1, 2, 3), | |
'access callback' => 'user_access', | |
'access arguments' => array('access content'), |