You are here

function theme_redhen_home in RedHen CRM 7

Theme handler for Redhen landing page.

Parameters

array $variables: Variables to theme.

Return value

array Render array.

1 theme call to theme_redhen_home()
redhen_landing_page in includes/redhen.admin.inc
Wrapper for system_admin_menu_block_page().

File

./redhen.module, line 308
Defines basic functionality common to all parts of the Redhen CRM.

Code

function theme_redhen_home($variables) {
  $items = $variables['items'];
  $list = array();
  $path = drupal_get_path('module', 'redhen');
  foreach ($items as $item) {
    $list[] = l($item['title'], $item['path']) . '<div>' . $item['description'] . '</div>';
  }
  $render = array(
    'logo' => array(
      '#theme' => 'image',
      '#path' => $path . '/misc/redhen_logo.png',
      '#alt' => t('Redhen CRM'),
      '#attributes' => array(
        'id' => 'redhen-logo',
      ),
    ),
    'links' => array(
      '#theme' => 'item_list',
      '#items' => $list,
    ),
    '#attached' => array(
      'css' => array(
        $path . '/misc/redhen.css',
      ),
    ),
  );
  return $render;
}