plugins->moduleInfo('noodles', 'version'); $old_version = $core->getVersion('noodles'); if (version_compare($old_version, $new_version, '>=')) { return null; } try { $core->blog->settings->addNamespace('noodles'); $core->blog->settings->noodles->put( 'noodles_active', false, 'boolean', 'Enable extension', false, true ); $core->setVersion('noodles', $new_version); return true; } catch (Exception $e) { $core->error->add($e->getMessage()); } return false;