finder_condition_args_label

  1. finder
    1. 7.x-1.x
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.

▾ 2 functions call finder_condition_args_label()

finder_admin_element_edit in includes/finder.admin.inc
Admin finder element add/edit page. Must have a Finder object at this point.
finder_autocomplete_form_finder_admin_element_edit_alter in modules/finder_autocomplete/finder_autocomplete.module
Implements hook_form_FORM_ID_alter().

Code

./finder.module, line 1344

<?php
function finder_condition_args_label($entry, $matches, $keywords) {
  return drupal_ucfirst(
    $entry['name']
    . ' - '
    . strtr(
      $entry['description'], 
      array('!matches' => $matches, '!keywords' => $keywords)
    )
  );
}
?>

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.