Contribution Date
Technology
Contribution Project
Contribution Details
@monsterfolk
Please review the below diff
diff --git a/includes/entity_claim.block.inc b/includes/entity_claim.block.inc
index dd8c64a..77e86bc 100644
--- a/includes/entity_claim.block.inc
+++ b/includes/entity_claim.block.inc
@@ -118,6 +118,9 @@
$link_options = array();
$link_options['attributes']['class'][] = $class;
+ // Allow other modules to add classes, allow html, etc.
+ drupal_alter('entity_claim_link_options', $link_options, $entity_wrapper);
+
if (user_is_anonymous() && entity_claim_add_access($type, $entity_wrapper->getIdentifier())) {
$link_options['query'] = array('destination' => $claim_link);
$link = l($text, 'user/login', $link_options);
@@ -128,7 +131,6 @@
$block['content'] = $link;
}
}
-
}
return $block;
With this you can check for a field in the entity and add class based on a category or something, or if you want html directly, just add that in the link_options. Let me know if this makes sense.
Contribution Issue Link
Files count
0
Patches count
0