Drupal 7 Programmatically Creating a Rule with a Custom Action

Commerce module uses Rules module extensively. Unlike Ubercart where you can just call a hook and receive $account information of the final process once an anonymous user is converted to a Drupal authenticated user, once checkout is complete.  With Commerce we have to use Rules to create a custom rule with an action that ultimately executes a callback....Yes, I know.... Here's the example of what we did. Look at the code comments for a better hint of what is going on.  

Read more

How to use Drupal 7 Pathauto module to automatically create smarter URLs

Why is this useful? Better site navigation for your users Better site organization through breadcrumbs that actually work right! You can use one content type and organize it into sub-categories SEO   Modules needed Token

Read more

Seeing dpm or drupal set message when using AJAX

ProblemOne of the worst head-aches you'll encounter with AJAX is the inability to know if the code you're writing works.ReasonThis is because there's no place for the drupal_set_message() or dpm() messages to show on the screen.SolutionThis is easily fixed by the code below: I included a comple

Read more
  • 2 of 2
  •