[Drupal] How can we use drupal_static function in Drupal 7? Drupal Technical | 2 min read The drupal_static() function provides a temporary storage for data that should stick around even after execution. It also provides the central static variable storage. It preserves the data within a page request as well.