Hook: php_admin_news_sql

1141

Use this hook to execute PHP code in the admin/news.php file on two locations. This hook is located when edit or create a new news.

For example:

if (empty($news) && !empty($defaults['jak_shownewsmany'])) { 
$insert .= $defaults['jak_showorder']; 
}