You are here

protected static function TextimageImager::rollbackStack in Textimage 7.3

Helper method to rollback nesting static variables in processTokens.

1 call to TextimageImager::rollbackStack()
TextimageImager::processTokens in classes/TextimageImager.inc
Textimage tokens replacement.

File

classes/TextimageImager.inc, line 478
Textimage - Image processor class.

Class

TextimageImager
Textimage - Image processor class.

Code

protected static function rollbackStack(&$nesting_level, &$field_stack) {
  if ($nesting_level) {
    unset($field_stack[$nesting_level]);
    $nesting_level--;
  }
  else {
    $nesting_level = NULL;
  }
}