You are here

function kwresearch_format_message in Keyword Research 6

Same name and namespace in other branches
  1. 7 kwresearch.module \kwresearch_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

File

./kwresearch.module, line 924

Code

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