drupal core install module and change the enable link to work with module_filter - drupal

I am using the filter module which makes it easier to manage modules which uses "/admin/modules?filter=" to list specific modules.
Since in core when installing new modules it displays the "enable newly added module" link, which actually only links to all modules,
I was wondering if it might be possible to create a custom module that replaces that link and redirects instead to "/admin/modules?filter=NEWLY_INSTALLED_MODULES_SEPARATED_BY_%20" ?
https://www.drupal.org/project/module_filter/issues/2952200#comment-12584379

Related

Getting started with Redux in WordPress

I apologize if this has been asked before, but after doing some research, I could not find any resources answering this specific question of mine.
I'm trying to use the Redux framework in my WordPress theme. I used the builder to get started, which is linked to on the plugin page. I customized my framework there and chose the option of "embed only" (Embed Only: TGM is not used and Redux is embedded within the theme/plugin). I also exported as a custom theme, which uses Underscores. As a result, I now have admin directory inside of my theme, with an "options-init.php" file in it. I've been modifying this file to add my options. Is this right? In the documentation it mentions to look for a sample-config.php file, and to copy that and modify it, but I can't find that anywhere. I want to make sure I'm doing this right before I get too far and find an issue.
Also, how do I make sure the framework stays up to date with the latest security patches? Is it a better idea to install it as a plugin rather than embed it in the theme itself?
Lead dev of Redux Framework here. It is very much a better idea to run Redux via a plugin if you want your users to have security updates.
Another option is to embed redux, but to use TGM to suggest for users to install the plugin. This way your theme is not dependent on Redux, but the moment they install the plugin, that version of Redux will take over.
It's up to you, but the plugin is the way to go.

Drupal 7 - Some disabled modules did not show up in the uninstall list

I have created a local copy of my website, now, I can disable modules but not all of them are showing up in the uninstall list.
For example, the following modules are already disabled but I did not see them in the uninstall list:
Aggregator 7.27 Aggregates syndicated content (RSS, RDF, and Atom
feeds).
AntiSpam 7.x-1.5+20-dev Use the Akismet, Defensio or TypePad AntiSpam
services to protect your site from spam.
Author Pane 7.x-2.0-beta1 Gathers information from core and user
related contrib modules and displays it in a template.
Auto Assign Role 7.x-1.x-dev Automatically assign a role to new
users.
Not all modules can/need to be uninstalled.
From the documentation Uninstalling modules:
Not all modules have specific uninstall functions programmed in. A module will only show up on the uninstall tab if it has this feature. If it doesn't, skip this step and simply delete its files.

publish content after varification by admin

I have created video gallery with help of cck . I have created a content type. Now My requirment is that when user add video it should not be published to all user.When admin active that content then it should be publish.
How can i do this please suggest me if there is any module for that.I am using drupal 6.
Thanks
There is several modules implementing this kind of publication workflow:
Workflow
Content Moderation
Moderation
Revisioning
Modr8
I only have experience with Revisioning which was pretty easy to install and straightforward to use. Workflow seems overkill for a simple publication workflow without a lot of additional features/behaviors.
Revisioning is also the only module to have a Drupal 7 release. Speaking for Drupal 7, once you get there you have the Workbench and Maestro modules.
You could use the Workflow module. Mongolito404 listed some good options for a simple approval workflow. You can also use the Rules if you like.
Help/Tutorials:
Drupal Workflow Automation
How do I set up the Workflow module?
If you choose the Revisioning module, a detailed tutorial on how to set it up can be found at http://drupal.org/node/408968
You don't need any extra modules to do what you need to do.
Just edit your new content type and uncheck Published in the Workflow settings section. This will make all new posts of that type unpublished by default.
Then, as an adminstrator, go to the content list at /admin/content/node and set it to show only items where status is not published.
Edit the unpublished nodes individually to publish them by checking the Publish box under Publishing options.
You could even use Drupal 6's core Triggers and Actions modules to have the site send you an email whenever a new video node is created.

Drupal 7 user registration: creating mandatory gender/city fields

I'm a Drupal newbie, but have successfully installed it at a CentOS 5.5 Linux, PostgreSQL 8.4.7, PHP 5.3 machine.
I've chosen minimal installation and then enabled following modules: Block, Image, Locale, OpenID (hope to add Google accounts later...) and Search. The User module etc. are enabled by default anyway.
My problem is:
I don't know how to add Gender/City fields and make them mandatory.
As a SPAM-fighting measure at my old phpBB 3 site I have a mandatory question for new users about their gender: Robot/Male/Female and the first answer is default and prevents the new user from registering.
Is it possible to do the same in Drupal 7?
And I hope it is doable without installing any additional modules as the stock install is easier to update. (That is what I was doing with my old phpBB site - with no mods installed).
Thank you for your answers! Alex
UPDATE:
Here is my Field module screenshot, does it look ok?
Maybe my problem is that List is shown as disabled?
First, note that there is a huge difference between Drupal modules and phpBB mods. Drupal provides API's which allows modules to integrate with Drupal without changing any code. You can just download them into a folder, enable and they are running.
And yes, what you are trying to do is possible without any additional modules. Just go to admin/config/people/accounts/fields, add a Gender field of Type "List (text)" (If that is not available, you might need to enable it, but it part of Drupal core), then, enter the allowed values and on the second page, check the "required" and "shown on registration form" checkboxes and you are good to go.

Drupal frontend-specific language

I've installed and configured a Drupal project in English but the frontend of the site should be in dutch. Now i was wondering if it's possible to configure frontend specific translations. The error messages etc. of the website (in the frontend) should be in Dutch.
If you want to run your site with a single language, you need to install and enable it. Some parts of the translation might not be completed, so you might need to do some work yourself to get a 100% translated site.
If you want to run english or another language in the admin, there is a module for that.
The easiest (and probably best) way to do this is to select "Nederlands (Dutch)" as the default language during installation (there are detailed instructions on the install page on how to do this). Changing the default language after you've installed it (and with some content already added) might lead to problems (it's not recommended to do this)...
If you do decide to add "Nederlands (Dutch)" to your current Drupal install, make sure you first put the translation files in the correct place BEFORE activating the new language. You will also have to enable the Locale module BTW (if you haven't done so already).

Resources