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
This commit is contained in:
parent
bfeccabcdb
commit
74f7acb69d
@ -354,7 +354,8 @@ switch($serendipity['GET']['adminAction']) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$smartentries[] = array(
|
|
||||||
|
$smartentry = array(
|
||||||
'id' => $ey['id'],
|
'id' => $ey['id'],
|
||||||
'title' => serendipity_specialchars($ey['title']),
|
'title' => serendipity_specialchars($ey['title']),
|
||||||
'timestamp' => (int)$ey['timestamp'],
|
'timestamp' => (int)$ey['timestamp'],
|
||||||
@ -368,6 +369,8 @@ switch($serendipity['GET']['adminAction']) {
|
|||||||
'archive_link' => serendipity_archiveURL($ey['id'], $ey['title'], 'serendipityHTTPPath', true, array('timestamp' => $ey['timestamp'])),
|
'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']
|
'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}
|
{if $entry.isdraft}
|
||||||
<span class="entry_status status_draft">{$CONST.DRAFT}</span>
|
<span class="entry_status status_draft">{$CONST.DRAFT}</span>
|
||||||
{/if}
|
{/if}
|
||||||
|
{$entry.info_more}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user