usability

Posted by: 
Dominique De Cooman

In drupal 7 we have something called contextual links. It is that little wheel you see when you hover over blocks so you can edit them in place. It is a great usability improvement but it is not always that clear how to implement them.

The contextual links functionality used to be a contrib module in d6 now it is a core module.

Posted by: 
Dominique De Cooman

A handy new feature in drupal 7 are the local tasks. We will quickly explain two ways of adding them. Everybody should be
familiar with the two examples to be found in the node module. First example is the add content type on ''admin/structure/types".

First method to create a local task, we can use a hook_menu()

<?php
/**
 * Implements hook_menu().
 */
function node_menu() {

  
//...?>

Subscribe to usability