How do I dynamically change the title of a menu link?

How do I dynamically change the title of a menu link?

I made a menu in administration, structures, menu. I want to change the title, as it appears on the menu, of one of the links based on the gender of the currently logged in user. I have found several answers to similar questions but I can’t figure out how to... read more
How do I dynamically change the title of a menu link?

give permission of create new revision to specific roles

I need to give the permission of “create new revision” to a specific role. but nothing related to this issue appeares in permissions page! I’ve installed Revisioning module too. how can I set it? read more
How do I dynamically change the title of a menu link?

Views Custom Field Handlers tokens

I am using simple views custom field handler. And I would like to make list of custom tokens for this $data array I have. How could I do that? class custom_views_handler_field_hostname extends views_handler_field { function render($value) { $location =... read more
How do I dynamically change the title of a menu link?

How do I remove the ellipsis button in the pager?

I have a view with video and have replaced the links to different pages with a button. However, when there are many videos, an ellipsis (…) appears floating, and I want to remove it. I have the View with full pager but I don’t see how to control this to... read more
How do I dynamically change the title of a menu link?

How to add an autocomplete field to a form

I’ve got a page that, in response to a button click, brings up a Bootstrap modal form. In that form is a textfield with the standard Drupal autocomplete behavior; it’s working fine. I now want to set things up so that, after a value is put into that field,... read more
How do I dynamically change the title of a menu link?

Modify Drupal pagination to restrict shown page numbers on Drupal 8

On Drupal 8: I have a pagination for list of articles within a Drupal site e.g.: <<first <previous … 3 4 5 6 7 8 9 10 11 … next> last>> So at the moment there are always nine page links shown. Basically I want to find out how to modify... read more
How do I dynamically change the title of a menu link?

Migrating to XAMPP local install – Configure the temporary directory

I have copied a site I have on a VPS down to run from XAMPP on my local machine. When I restore the site using Backup and Migrate I get the error message on all pages of the site: The specified file temporary://filemy1oSK could not be copied, because the destination... read more
How do I dynamically change the title of a menu link?

Multiple pagers in one page

I have a view with two separate displays that is used in one single page. Both the displays are using a pager. To get things working I set a unique id for each pager under pager options. This works and I can use each pager independently. The problem is that the... read more
How do I dynamically change the title of a menu link?

How do i disable price, shipping and payment in ubercart

I need to set up a “shopping cart” to allow users to collect URLs from my local database. All my products are free. Based on which URLs are in the users “basket” I fetch files and pack them in a tar file and send the user a URL where the tar... read more
How do I dynamically change the title of a menu link?

Updating few thousand nodes in one time

I have script which updating 2000-5000 nodes in loop and performance is poor. At the moment the code looks like: foreach($nids as $nid) { $node = node_load($nid); // updating $node fields node_save($node); } It’s possible optimize it? I don’t need... read more
How do I dynamically change the title of a menu link?

How to add a class to the webform error message

When people fill in incorrectly in my webform, the error message will output as follow, e.g: <div class=”alert alert-block alert-danger”> <a class=”close” data-dismiss=”alert” href=”#”>×</a> <h4... read more
How do I dynamically change the title of a menu link?

How can I pass more resource IDs with a single request?

I’ve been using the Services module with the REST module from quite some time now. I want to make a single PUT application/json request with an appropriate JSON raw body for it, passing more than a resource ID, instead of making different requests. So far as I... read more
How do I dynamically change the title of a menu link?

Define available default colors for Color Field programatically

I use the Color Field as a field in a custom module from where I create the content type programatically. By default the available colors are defined at this hook: color_field_field_settings_form in the color_field module. I need to modify the list of available colors... read more
How do I dynamically change the title of a menu link?

How to programmatically create forums and containers (not forum topics)?

I need to create containers and forums using rules. If I use the action “Create new entity” -> “Taxonomy term” I got that by default the new term created is treated as a forum, not a container. How can I either convert it to be a container... read more
How do I dynamically change the title of a menu link?

How can I update webform_submission uid in the table, after which the anonymous user has registered?

I’m a graphic design, and I just started using Drupal 7. I have a form created with webform, which collects data entered by the user, after sending, the user is directed to the purchase page. The stages of the purchase is successful if both the user and logged... read more
How do I dynamically change the title of a menu link?

Drush dl not working on Ubuntu with postgresql backend

modules can be added manually, but drush dl or drush en produce errors and will not download a module database section from settings.php $databases[‘default’][‘default’] = array( ‘driver’ => ‘pgsql’,... read more
How do I dynamically change the title of a menu link?

Views Exposed filter text search for multiple value field

I have 6 fields (in Profile2) I want to combine into an exposed “Global: Combine field filter”: Field 1 = text field with 1 value (text) Field 2 = text field with 1 value (text) Field 3 = text field with 1 value (text) Field 4 = text field with 1 value... read more
How do I dynamically change the title of a menu link?

Passing variables to JS from theme folder .tpl files

I use many template files in my modules via hook theme. In order to pass variable to JS files I use the method described here: https://www.drupal.org/node/304258 in the .tpl.php files: $my_settings = array( ‘basePath’ => $base_path,... read more
How do I dynamically change the title of a menu link?

Update payment method pane with ajax

I have the coupon pane, the order review and the payment info panes all on the same checkout page. When I add a coupon, an ajax callback is fired and the order summary is automatically updated to reflect the coupon, but the payment info pane is not updated. I have a... read more
How do I dynamically change the title of a menu link?

How remove/hide an action field link?

On a node field form (admin/structure/types/manage/article/fields), I have a dropdown with action links for all fields. Edit Storage Settings Delete I would like know if it’s possible to unset the “Delete” link for a field please. I have try with... read more