1 installer.theme.inc template_preprocess_installer_browser_project_dialog(&$variables)

Add some variables for the project details dialog.

Parameters

$variables: An associative array containing:

  • project : associative array of project variables.

File

core/modules/installer/installer.theme.inc, line 124
Project Installer theme pages.

Code

function template_preprocess_installer_browser_project_dialog(&$variables) {
  template_preprocess_installer_browser_project($variables);
  $project = $variables['project'];
  $variables['project_page'] = l(t('View on BackdropCMS.org'), 'https://backdropcms.org/project/' . $project['name']);
  $variables['description'] = _filter_htmlcorrector(filter_xss($project['description'], array('h2', 'p', 'a', 'ul', 'li', 'pre')));
  $variables['title'] = $project['title'];
  $variables['image'] = FALSE;

  // If the project has an image, render it.
  if (!empty($project['image'])) {
    $variables['image'] = theme('image', array(
      'path' => $project['image'],
      'alt' => $project['title'],
    ));
  }
}