You are here

function theme_message_ui_create_message in Message UI 7

Theme callback - display list of the message types in the proper way.

1 theme call to theme_message_ui_create_message()
message_ui_create_new_message_instance_list in ./message_ui.module
Display list of message types to create an instance for them.

File

./message_ui.module, line 314
Main file for the message UI module.

Code

function theme_message_ui_create_message($variables) {
  $items = $variables['items'];
  $output = '<ul class="admin-list">';
  foreach ($items as $item) {
    $output .= '<li class="clearfix">';
    $output .= '<span class="label">' . l(ucfirst(str_replace('_', ' ', $item['type'])), 'admin/content/message/create/' . str_replace('_', '-', $item['type'])) . '</span>';
    $output .= '<div class="description">' . t('Create a message instance of @type', array(
      '@type' => $item['name'],
    )) . '</div>';
    $output .= '</li>';
  }
  $output .= '</ul>';
  return $output;
}