You are here

function contentanalysis_format_content in Content Analysis 8

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

Formats a content element

Parameters

$value: String of element content

$weight: Int sort order value for element

$tab: Boolean if element should be inserted as a tab

Return value

Content formatted associative array

2 calls to contentanalysis_format_content()
contentanalysisexample_analyzer in APIEXAMPLE/contentanalysisexample.module
Implements hook_analyzer() via custom define callback
contentanalysis_checklist_analyzer in ./contentanalysis.module
Generates checklist analyzer

File

./contentanalysis.module, line 1523

Code

function contentanalysis_format_content($value, $weight = -1, $tab = FALSE) {
  $ret = array(
    '#value' => $value,
    '#weight' => $weight,
  );
  if ($tab) {
    $ret['#tab'] = TRUE;
  }
  return $ret;
}