| Versionen | |
|---|---|
| drupal6 – drupal7 | blogapi_mt_supported_text_filters() |
Blogging API callback. Sends a list of available input formats.
modules/
<?php
function blogapi_mt_supported_text_filters() {
// NOTE: we're only using anonymous' formats because the MT spec
// does not allow for per-user formats.
$formats = filter_formats();
$filters = array();
foreach ($formats as $format) {
$filter['key'] = $format->format;
$filter['label'] = $format->name;
$filters[] = $filter;
}
return $filters;
}
?>
Kommentare
Kommentar hinzufügen