Hook::register('connector_settings_post', 'addon/dwpost/dwpost.php', 'dwpost_settings_post');
}
-function dwpost_jot_nets(App $a, array &$jotnets_fields)
+function dwpost_jot_nets(array &$jotnets_fields)
{
if (!DI::userSession()->getLocalUserId()) {
return;
}
-function dwpost_settings(App $a, array &$data)
+function dwpost_settings(array &$data)
{
if (!DI::userSession()->getLocalUserId()) {
return;
}
-function dwpost_settings_post(App $a, array &$b)
+function dwpost_settings_post(array &$b)
{
if (!empty($_POST['dwpost-submit'])) {
DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'dwpost', 'post', intval($_POST['dwpost']));
}
}
-function dwpost_post_local(App $a, array &$b)
+function dwpost_post_local(array &$b)
{
// This can probably be changed to allow editing by pointing to a different API endpoint
if ($b['edit']) {
$b['postopts'] .= 'dwpost';
}
-function dwpost_send(App $a, array &$b)
+function dwpost_send(array &$b)
{
if ($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
return;