I have an array printing in module file. I want to theme that array data,so I am not getting how can I get that array data in template file. I don't want to create theme function and all. is there any inline solution to pass from module to template. My code is like below.
$data['listfiles'] = array( '#theme' => 'table', '#header' => $filesheader, '#rows' => $rows, '#empty' => t('No content available.'), ); return $data;
I want to pass $data variable to the template file, so that I can theme the data.Thanks in advance for any suggestions.