]>
git.immae.eu Git - github/shaarli/Shaarli.git/blob - plugins/addlink_toolbar/addlink_toolbar.php
4 * Plugin addlink_toolbar.
5 * Adds the addlink input on the linklist page.
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_'] == Router
::$PAGE_LINKLIST && $data['_LOGGEDIN_'] === true) {
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.');