However as I suspected it doesn't fully work with the media library module. The library shows uploaded media but it doesn't allow one to add new media.
Upon investigation is seems I may need to create the form by extending the class
I'm trying to set the title attribute of an image (multiple) field using hook node presave. I will ultimately be using the filename without the extension but for now I'd just like to get the title to set then I should be right to build that variable.
I am using Search API and Search API SOLR modules to search with SOLR. Now I would to change the query and I already learned how to do it. Last thing I need is to allow user change query through some selection in checkboxes.
So what I need is:
1. Add checkboxes to search form (they cannot change the query, I want to it manually)
2. Find which cb are checked and manually changed the query.
I'm getting trouble doing this simple task and after hours diving into forums, I can't find any answer. Here it is :
I've created a custom block via the UI. This block has id number 2, as seen in the URL and is placed in the header.It's sole purpose is to show a string depending on the current user data on user login.
I've created a custom module which invokes the MY_MODULE_user_login hook, in order to get the string I need to show in the previous block :