I have searched the issues and the git commits, but could not find a reference as to why this was dropped nor could I find an (open) issue of a similar request.

I propose to re-introduce the callback arguments to the API, so that you could do something like:

/**
 * Implements hook_nodewords_tags_info().
 */
function nodewords_custom_tags_nodewords_tags_info() {
  $objects = nodewords_custom_tags_get_objects();

  if (count($objects)) {
    foreach ($objects as $object) {
      $tags[$object->name] = array(
        'callback' => 'nodewords_custom_tags_callback',
        'callback arguments' => array(
          'name' => $object->name,
          'type' => $object->type,
          'title' => $object->title,
          'description' => $object->description
        ),
        'context' => array(
          'allowed' => array(
            NODEWORDS_TYPE_DEFAULT,
            NODEWORDS_TYPE_NODE,
            NODEWORDS_TYPE_PAGE,
          ),
        ),
        'label' => $object->title,
        'templates' => array(
          'head' => array(
            $object->name => NODEWORDS_META,
          ),
        ),
      );
    }
  }

  return $tags;
}

This is a module (nodew)rds_custom_tags) we developed for a customer where you are presented with an interface to create any additional metatag 'on the fly' without the need for development.

Patch for this in attach.

Cheers,

mlc.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

malc0mn’s picture

FileSize
2.6 KB

That wasn't the right patch, was it... Now it is :-s

malc0mn’s picture

Issue summary: View changes

removed tokens

DamienMcKenna’s picture

Version: 6.x-1.14 » 6.x-1.x-dev
DamienMcKenna’s picture

Status: Active » Closed (won't fix)

Thank you for taking the time to work on this. However, the module is no longer supported, so I'm closing this issue.