/**
 * Implementation of hook_nodeapi().
 */
function taxonomy_location_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
  switch ($op) {

   case 'insert':
     break;
   case 'update':
     break;

    case 'load':
      // technically the data's already in the term, and we don't need to add anything here.  For this module.  Maybe.
      break;

    case 'view':
      // if applicable, show on all non-teaser pages and on teaser pages if set
      if (in_array($node->type, taxonomy_location_node_types()) && (!$teaser || ($teaser && variable_get('taxonomy_location_teaser_' . $node->type, 0)))) {
/*
        $node->content['_terms'] = array(
          '#value' => cmt_terms_node_view($node, TRUE),
          '#weight' => 15,
        );
*/        
      }     
      break;
  }
}


/**
 * Implementation of hook_user().
 */
function taxonomy_location_user($type, $edit, $user) {
  switch ($type) {
    case 'form':
 if (user_access('access taxonomy location')) {
        $form['content_taxonomy_location'] = array(
          '#type' => 'fieldset',
          '#title' => t('Do something else here'),
        );
        $form['content_images']['taxonomy_image_disable_images'] = array(
          '#type' => 'checkbox',
          '#title' => t('Taxonomy location'),
          '#return_value' => 1,
          '#default_value' => $user->taxonomy_location_disable_images,
          '#description' => t('Check this box to have no effect on taxonomy location.'),
        );
        return $form;
      }
      break;
  }
}
