backend_post_edit

Adds custom content to post-editing page in backend.

Blog

Input (passed by reference)

$params array Post data array.
… your plugin code …

Output

{$backend_post_edit.%plugin_id%.sidebar}
Custom content for sidebar.
{$backend_post_edit.%plugin_id%.toolbar}
Custom content displayed at the page top, between post title and content fields.
{$backend_post_edit.%plugin_id%.editor_tab}
HTML code of a link for users to select custom text editing mode, which must be supported by the plugin.
Blog

Plugin code example

PHP

public function backendPostEdit($params)
{
    waLog::log(print_r($params, true), 'blog/myplugin/backend-post-edit.log');
    return array(
        'sidebar' => 'Custom sidebar HTML',
        'toolbar' => 'Custom toolbar HTML',
        'editor_tab' => '<a href="">My tab</a>',
    );
}