4 * Plugin addlink_toolbar.
5 * Adds the addlink input on the linklist page.
8 use Shaarli\Render\TemplatePage
;
11 * When linklist is displayed, add play videos to header's toolbar.
13 * @param array $data - header data.
15 * @return mixed - header data with addlink toolbar item.
17 function hook_addlink_toolbar_render_header($data)
19 if ($data['_PAGE_'] == TemplatePage
::LINKLIST
&& $data['_LOGGEDIN_'] === true) {
23 'action' => $data['_BASE_PATH_'] . '/admin/shaare',
31 'placeholder' => t('URI'),
35 'value' => t('Add link'),
36 'class' => 'bigbutton',
40 $data['fields_toolbar'][] = $form;
47 * This function is never called, but contains translation calls for GNU gettext extraction.
49 function addlink_toolbar_dummy_translation()
52 t('Adds the addlink input on the linklist page.');