You are here

function tca_token_replace in Token Content Access 7

Submit handler for the "Regenerate Token" button.

1 string reference to 'tca_token_replace'
tca_form in ./tca.module
Form structure for the Token Content Access configuration.

File

./tca.module, line 354
The Token Content Access module file.

Code

function tca_token_replace($form, &$form_state) {
  $entity_type = $form_state['values']['tca_entity_type'];
  $entity = $form_state[$entity_type];
  $form_state['values']['tca_token'] = tca_get_token($entity_type, $entity, $value = '');
  $form_state['rebuild'] = TRUE;
}