Permalink
Browse files

Introduce backend_view_entry hook (#511)

Gives plugins the option to modify the central entry list in the plugin, so far to show additional information
  • Loading branch information...
onli committed May 11, 2017
1 parent bfeccab commit 74f7acb69dc410516b6b2cea0bc5e762490610aa
Showing with 5 additions and 1 deletion.
  1. +4 −1 include/admin/entries.inc.php
  2. +1 −0 templates/2k11/admin/entries.inc.tpl
@@ -354,7 +354,8 @@
}
}
$smartentries[] = array(
$smartentry = array(
'id' => $ey['id'],
'title' => serendipity_specialchars($ey['title']),
'timestamp' => (int)$ey['timestamp'],
@@ -368,6 +369,8 @@
'archive_link' => serendipity_archiveURL($ey['id'], $ey['title'], 'serendipityHTTPPath', true, array('timestamp' => $ey['timestamp'])),
'preview_link' => '?serendipity[action]=admin&serendipity[adminModule]=entries&serendipity[adminAction]=preview&' . serendipity_setFormToken('url') . '&serendipity[id]=' . $ey['id']
);
serendipity_plugin_api::hook_event('backend_view_entry', $smartentry);
$smartentries[] = $smartentry;
}
@@ -175,6 +175,7 @@
{if $entry.isdraft}
<span class="entry_status status_draft">{$CONST.DRAFT}</span>
{/if}
{$entry.info_more}
</div>
</li>
{/foreach}

0 comments on commit 74f7acb

Please sign in to comment.