]>
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.
9 * When linklist is displayed, add play videos to header's toolbar.
11 * @param array $data - header data.
13 * @return mixed - header data with addlink toolbar item.
15 function hook_addlink_toolbar_render_header($data)
17 if ($data['_PAGE_'] == Router
::$PAGE_LINKLIST && $data['_LOGGEDIN_'] === true) {
29 'placeholder' => t('URI'),
33 'value' => t('Add link'),
34 'class' => 'bigbutton',
38 $data['fields_toolbar'][] = $form;
45 * This function is never called, but contains translation calls for GNU gettext extraction.
47 function addlink_toolbar_dummy_translation()
50 t('Adds the addlink input on the linklist page.');