plugin_settings are now feature_settings
This commit is contained in:
parent
24565182a4
commit
154ed4151a
@ -181,11 +181,7 @@ function settings_post(&$a) {
|
|||||||
if((argc() > 1) && (argv(1) == 'featured')) {
|
if((argc() > 1) && (argv(1) == 'featured')) {
|
||||||
check_form_security_token_redirectOnErr('/settings/featured', 'settings_featured');
|
check_form_security_token_redirectOnErr('/settings/featured', 'settings_featured');
|
||||||
|
|
||||||
|
call_hooks('feature_settings_post', $_POST);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
call_hooks('featured_settings_post', $_POST);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -672,7 +668,7 @@ function settings_content(&$a) {
|
|||||||
if(! count($r))
|
if(! count($r))
|
||||||
$settings_addons = t('No feature settings configured');
|
$settings_addons = t('No feature settings configured');
|
||||||
|
|
||||||
call_hooks('plugin_settings', $settings_addons);
|
call_hooks('feature_settings', $settings_addons);
|
||||||
|
|
||||||
|
|
||||||
$tpl = get_markup_template("settings_addons.tpl");
|
$tpl = get_markup_template("settings_addons.tpl");
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<h1>$title</h1>
|
<h1>$title</h1>
|
||||||
|
|
||||||
|
|
||||||
<form action="settings/addon" method="post" autocomplete="off">
|
<form action="settings/featured" method="post" autocomplete="off">
|
||||||
<input type='hidden' name='form_security_token' value='$form_security_token'>
|
<input type='hidden' name='form_security_token' value='$form_security_token'>
|
||||||
|
|
||||||
$settings_addons
|
$settings_addons
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<h1>{{$title}}</h1>
|
<h1>{{$title}}</h1>
|
||||||
|
|
||||||
|
|
||||||
<form action="settings/addon" method="post" autocomplete="off">
|
<form action="settings/featured" method="post" autocomplete="off">
|
||||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||||
|
|
||||||
{{$settings_addons}}
|
{{$settings_addons}}
|
||||||
|
Reference in New Issue
Block a user