You are here

function drupalchat_preprocess_drupalchat in DrupalChat 6.2

Same name and namespace in other branches
  1. 8 drupalchat.module \drupalchat_preprocess_drupalchat()
  2. 6 drupalchat.module \drupalchat_preprocess_drupalchat()
  3. 7.2 drupalchat.module \drupalchat_preprocess_drupalchat()
  4. 7 drupalchat.module \drupalchat_preprocess_drupalchat()

File

./drupalchat.module, line 146
Module code for DrupalChat.

Code

function drupalchat_preprocess_drupalchat(&$variables) {
  $modules = module_invoke_all('drupalchat_subpanel');
  $items = array();
  $items[] = array(
    'data' => _drupalchat_chat(),
    'id' => 'chatpanel',
  );
  foreach ($modules as $module) {
    $items[] = array(
      'data' => theme('drupalchat_subpanel', $module),
      'id' => $module['name'],
    );
  }
  $variables['subpanels'] = theme('item_list', $items, NULL, 'ul', array(
    'id' => 'mainpanel',
  ));
}