link

Views fields relacionados con los usuarios, autores..

// En el template.php
 
// Para el campo, Nodo: nombre de autor
 
function phptemplate_username($object) {
 
  if ($object->uid && $object->name) {
    // Shorten the name when it is too long or it will break many tables.
    if (drupal_strlen($object->name) > 20) {
      $name = drupal_substr($object->name, 0, 15) .'...';
    }
    else {
      $name = $object->name;
    }
 
    if (user_access('access user profiles')) {
       // la línea de 

hook_link y su potencia

<?php
/**
 * Implementation of hook_link().
 * 
*/
function movida_link($type, $object, $teaser = FALSE) {
 
  if ($type == 'node') {
    $node_type= variable_get('movida_'. $type, FALSE);
    if ($node_type == '1') {
      $links = array();
      $links['gears_create'] = array(
        'title' => t('Create'),
        'href' => "manifest/node_create",
      );
      $links['movida_delete'] = array(
        'title' => Leer mas

Distribuir contenido
Diseño y desarrollo INVESTIC con DRUPAL