You are here

function contentanalysis_format_message in Content Analysis 7

Same name and namespace in other branches
  1. 8 contentanalysis.module \contentanalysis_format_message()
  2. 6 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 formatted associative array

4 calls to contentanalysis_format_message()
contentanalysisexample_analyzer in APIEXAMPLE/contentanalysisexample.module
Implements 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
contentanalysis_parse_context_node_load in ./contentanalysis.module
Normalizes context data inputed from the node_load function

File

./contentanalysis.module, line 1505

Code

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