function addthis_field_formatter_info in AddThis 7.4
Implements hook_field_formatter_info().
Creates a formatter element for all the default formatter types.
File
- includes/
addthis.field.inc, line 35 - Field related hook implementations for the AddThis-module.
Code
function addthis_field_formatter_info() {
$formatters = array();
foreach (AddThis::getInstance()
->getDefaultFormatterTypes() as $key => $label) {
$formatters[$key] = array(
'label' => $label,
'field types' => array(
AddThis::FIELD_TYPE,
),
);
}
return $formatters;
}