aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/addlink_toolbar/addlink_toolbar.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/addlink_toolbar/addlink_toolbar.php')
-rw-r--r--plugins/addlink_toolbar/addlink_toolbar.php19
1 files changed, 6 insertions, 13 deletions
diff --git a/plugins/addlink_toolbar/addlink_toolbar.php b/plugins/addlink_toolbar/addlink_toolbar.php
index bf8a198a..8c05a231 100644
--- a/plugins/addlink_toolbar/addlink_toolbar.php
+++ b/plugins/addlink_toolbar/addlink_toolbar.php
@@ -26,11 +26,11 @@ function hook_addlink_toolbar_render_header($data)
26 array( 26 array(
27 'type' => 'text', 27 'type' => 'text',
28 'name' => 'post', 28 'name' => 'post',
29 'placeholder' => 'URI', 29 'placeholder' => t('URI'),
30 ), 30 ),
31 array( 31 array(
32 'type' => 'submit', 32 'type' => 'submit',
33 'value' => 'Add link', 33 'value' => t('Add link'),
34 'class' => 'bigbutton', 34 'class' => 'bigbutton',
35 ), 35 ),
36 ), 36 ),
@@ -42,17 +42,10 @@ function hook_addlink_toolbar_render_header($data)
42} 42}
43 43
44/** 44/**
45 * When link list is displayed, include markdown CSS. 45 * This function is never called, but contains translation calls for GNU gettext extraction.
46 *
47 * @param array $data - includes data.
48 *
49 * @return mixed - includes data with markdown CSS file added.
50 */ 46 */
51function hook_addlink_toolbar_render_includes($data) 47function addlink_toolbar_dummy_translation()
52{ 48{
53 if ($data['_PAGE_'] == Router::$PAGE_LINKLIST && $data['_LOGGEDIN_'] === true) { 49 // meta
54 $data['css_files'][] = PluginManager::$PLUGINS_PATH . '/addlink_toolbar/addlink_toolbar.css'; 50 t('Adds the addlink input on the linklist page.');
55 }
56
57 return $data;
58} 51}