You are here

function tft_og_file_node_validate in Taxonomy File Tree 7.2

@todo check the user selects a term she has access to.

Validate the node form. Check the taxonomy term.

1 string reference to 'tft_og_file_node_validate'
tft_og_form_alter in modules/tft_og/tft_og.module
Implements hook_form_alter()

File

modules/tft_og/tft_og.module, line 224
Hook implementations for TFT OG.

Code

function tft_og_file_node_validate($form, $form_state) {

  // If the user can only add terms to an OG term

  /*if (!user_access(TFT_ADD_TERMS)) {
      if (!tft_term_access(reset($form_state['values']['taxonomy'][variable_get('tft_vocabulary_vid', 0)]))) {
        form_set_error('taxonomy][' . variable_get('tft_vocabulary_vid', 0), t("You must select a parent folder that is part of a group you're a member of."));
      }
    }**/
}