finder_condition_args_label
- finder
| Versions | |
|---|---|
| 7.x-1.x | finder_condition_args_label($entry, $matches, $keywords) |
Get label for a condition args entry.
Parameters
$entry A condition args entry.
$matches The translated string to replace !matches with.
$keywords The translated string to replace !keywords with.
Return value
The formatted label.
Code
./
<?php
function finder_condition_args_label($entry, $matches, $keywords) {
return drupal_ucfirst(
$entry['name']
. ' - '
. strtr(
$entry['description'],
array('!matches' => $matches, '!keywords' => $keywords)
)
);
}
?>
