' . t('About') . ''; $output .= '

' . t('Status Messages for Users') . '

'; return $output; default: } } /** * Implements hook_theme(). */ function statusmessage_theme() { $theme = []; $theme['status'] = [ 'render element' => 'elements', 'file' => 'status.page.inc', 'template' => 'status', ]; $theme['status_content_add_list'] = [ 'render element' => 'content', 'variables' => ['content' => NULL], 'file' => 'status.page.inc', ]; return $theme; } /** * Implements hook_theme_suggestions_HOOK(). */ function statusmessage_theme_suggestions_status(array $variables) { $suggestions = array(); $entity = $variables['elements']['#status']; $sanitized_view_mode = strtr($variables['elements']['#view_mode'], '.', '_'); $suggestions[] = 'status__' . $sanitized_view_mode; $suggestions[] = 'status__' . $entity->bundle(); $suggestions[] = 'status__' . $entity->bundle() . '__' . $sanitized_view_mode; $suggestions[] = 'status__' . $entity->id(); $suggestions[] = 'status__' . $entity->id() . '__' . $sanitized_view_mode; return $suggestions; }