modulizer functions for php