function contentanalysis_format_content in Content Analysis 6
Same name and namespace in other branches
- 8 contentanalysis.module \contentanalysis_format_content()
- 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 formated associative array
2 calls to contentanalysis_format_content()
- contentanalysisexample_analyzer in APIEXAMPLE/
contentanalysisexample.module - Implementation of hook_analyzer() via custom define callback
- contentanalysis_checklist_analyzer in ./
contentanalysis.module - Generates checklist analyzer
File
- ./
contentanalysis.module, line 1362
Code
function contentanalysis_format_content($value, $weight = -1, $tab = FALSE) {
$ret = array(
'#value' => $value,
'#weight' => $weight,
);
if ($tab) {
$ret['#tab'] = TRUE;
}
return $ret;
}