wordpress plugin – Contact Form 7 – get list of all forms

function itvarna_get_contactForm7_forms()
{
if ( !class_exists( ‘WPCF7_ContactForm’ ) ) return array();
$return[]=array(‘name’=>”);
$items = WPCF7_ContactForm::find( array() );
foreach($items as $form){
$return[$form->id]=array(‘name’=>$form->title);
}
return $return;
}