You are here

function minisite_site_build in Mini site 7

Build minisite.

1 call to minisite_site_build()
minisite_deliver in includes/minisite.theme.inc
Deliver minisite.

File

./minisite.module, line 185
Module file.

Code

function minisite_site_build($minisite_info) {
  $minisite_html =& drupal_static(__FUNCTION__);
  if (!isset($minisite_html)) {
    $minisite_html = array();
  }
  if (!isset($minisite_html[$minisite_info['mid']])) {

    // Load module inc file.
    module_load_include('inc', 'minisite', 'includes/minisite.site');
    $html = minisite_site_parse($minisite_info);
    if (empty($html)) {
      $minisite_html[$minisite_info['mid']] = '';
      _minisite_fast_404();
    }
    else {
      $minisite_html[$minisite_info['mid']] = $html;
    }
  }
  return $minisite_html[$minisite_info['mid']];
}