You are here

function contentanalysis_format_message in Content Analysis 6

Same name and namespace in other branches
  1. 8 contentanalysis.module \contentanalysis_format_message()
  2. 7 contentanalysis.module \contentanalysis_format_message()

Formats a message element

Parameters

$message: Text of the message

$type: Status of the message. Values: ['status'|'complete'|'warning','error']

Return value

Message formated associative array

3 calls to contentanalysis_format_message()
contentanalysisexample_analyzer in APIEXAMPLE/contentanalysisexample.module
Implementation of hook_analyzer() via custom define callback
contentanalysis_checklist_analyzer in ./contentanalysis.module
Generates checklist analyzer
contentanalysis_do_analysis in ./contentanalysis.module
Provides analysis on context passed in

File

./contentanalysis.module, line 1344

Code

function contentanalysis_format_message($message, $type = 'status') {
  return array(
    '#value' => $message,
    '#status' => $type,
  );
}