Skip to main content
Home
Toggle menu
  • Home
  • Drupal Training
  • Login
  • Register

Drupal7

Drupal : Send Ubercart PayPal payment to node author

Drupal7

This CodeLet alter the 'uc_paypal_wps_email' variable when PayPal payment is enabled with Ubercart & sets to node author's PayPal account email address. This requires creating a field on user's account with name 'PayPal Email' (field_paypal_email).

Drupal ubercart
Drupal7
Copied to clipboard

Drupal: Integrate A-frame & enable VR features

Drupal7

This CodeLet integrates Aframe libray & displays images using Aframe. With a VR enabled device, you can then view it in VR. It first displays a wall of images. When user clicks on one of them, on a new page, it displays the image using aframe library.

Aframe
Drupal7
Copied to clipboard

Drupal: Create Drupal7 node Programmatically

Drupal7

This CodeLet will read data from an external API, parse the JSON response & build a node of specific type. It imports taxonomies & images as well. The fascinating thing about this CodeLet is, it can import data to multi - value node fields, including multi widget fields & different field types.

Drupal Developer
Drupal7
Import node
Copied to clipboard

Drupal7: JSON, hook_form_alter & hook_menu

Drupal7

This CodeLet demonstrates the use of hook_form_alter & hook_menu.
Using hook_form_alter, a text field is added to site information page. Once a API key is saved, the button has value 'Update configuration'
Using JSON menu, one can pull a node of type page, as JSON string.

Drupal7
Drupal hook
Copied to clipboard
Subscribe to Drupal7
  • Home
  • Drupal Training
  • About
  • Contact

Claim your $200 hosting credit now!

sfy39587stp18