drupal 5

Getting where you want to go in Drupal

The following information applies to Drupal 5.x

If you are working with a protected site, using http://drupal.org/project/login_destination module is a good way to create a logic system for routing users.

In my case, I needed people to get to where they were trying to go in the first place when logging in.

For instance, if a user visits example.com/blog, and is prompted to login first, then I want them to arrive at *exactly* example.com/blog after they successfully login.

So, http://drupal.org/project/login_destination provides this functionality.

Taxonomy Section Custom Drupal Code

  1. $taxo_section_string = $taxo_section;
  2. echo "[" . $taxo_section_string . "]";
  3. $taxo_section_tids = taxonomy_get_term_by_name($taxo_section_string);
  4. if (!$taxo_section_tids) {
  5. // add section into this issue
  6. // this will only occur with new section names
  7. $form_values = array('vid' => $taxo_volume_vid, 'name' => $taxo_section_string, 'parent' => array($taxo_issue_tid));
  8. $status = taxonomy_save_term($form_values);
  9. echo "[added" . $taxo_section_string .
Original location: 

none

Syndicate content (C01 _th3me_)