Why can't I make this sequence into a function I can recall in loop?

const int ledPin = 7;
const int buttonPin = 2;	
int buttonState = 0;
void setup()
{
pinMode(ledPin, OUTPUT);
  pinMode(buttonPin, INPUT);
 [b][color=yellow]int blinkLight(){ 
  digitalWrite(ledPin, HIGH);
  delay(0250);
  digitalWrite(ledPin, LOW);
  delay(0250);
  digitalWrite(ledPin, HIGH);
  delay(0250);
    digitalWrite(ledPin, LOW);}[/color][/b]
  }
void loop(){
 
  if (digitalRead(buttonPin) == LOW)
  {digitalWrite (ledPin, HIGH);
   delay (2000);
   digitalWrite (ledPin, LOW);
  }
  }

I want the sequence of blinking the lights before waiting for input from the push button to repeat after the push button has been pushed and the response has been executed. Basically the cycle would start all over from setup after this happens so I want to make the initial blink sequence into a function so I can just recall it in the loop section. Any tips or guidance?

OK, I got it to compile by defining the function outside of the void setup section but now I can't seem to get it to recall?

const int ledPin = 7;
const int buttonPin = 2;	
int buttonState = 0;

int blinkLight() 
 {digitalWrite(ledPin, HIGH);
  delay(0250);
  digitalWrite(ledPin, LOW);
  delay(0250);
  digitalWrite(ledPin, HIGH);
  delay(0250);
    digitalWrite(ledPin, LOW);}

void setup()
{int blinkLight;
pinMode(ledPin, OUTPUT);
  pinMode(buttonPin, INPUT);
 
  }
void loop(){
 
  if (digitalRead(buttonPin) == LOW)
  {digitalWrite (ledPin, HIGH);
   delay (2000);
   digitalWrite (ledPin, LOW);
   int blinkLight;
  }
  }

what am I doing wrong?

I was able to figure this out; thank you so much guys. Mods may close this.
I figured out I just needed to type the function's name without int or void in order to call the function.

I'm glad to hear you found the solution @premobowei. Thanks for taking the time to post an update. Enjoy!

delay(0250); if you want to delay 168 milliseconds, why not just write "delay (168);"?

Is this an anti-plagiarism measure?

Well done for sorting out your own problem, ++Karma;

Now please study blink without delay, which is in the examples in the IDE under digital and apply the lessons learnt to your code. Delay might be working OK for you now in simple code, but the more complex your code gets the more delay will cause you problems.

In answer to the question "my code is not very responsive and I don't know why", which you will be asking in a month or 3; "It's because of all the delays".