finder_condition_args_default

  1. finder
    1. 7.x-1.x
Versions
7.x-1.x finder_condition_args_default()

Get preconfigured condition match methods.

▾ 3 functions call finder_condition_args_default()

finder_admin_custom_matching in includes/finder.admin.inc
Finder admin custom matching configuration page.
finder_admin_custom_matching_submit in includes/finder.admin.inc
Submit function for finder admin custom matching configuration page.
finder_condition_args in ./finder.module
Get data about finder match methods.

Code

./finder.module, line 1243

<?php
function finder_condition_args_default() {
  return array(
    'c' => array(
      'name' => t('Contains'), 
      'description' => t('!matches <em>contain</em> the !keywords.'), 
      'operator' => 'LIKE', 
      'value_prefix' => '%', 
      'value_suffix' => '%',
    ), 
    'cw' => array(
      'name' => t('Contains word'), 
      'description' => t('!matches <em>contain</em> the !keywords as whole words.'), 
      'operator' => 'REGEXP', 
      'value_prefix' => '[[:<:]]', 
      'value_suffix' => '[[:>:]]',
    ), 
    'e' => array(
      'name' => t('Equals'), 
      'description' => t('!matches must match the !keywords <em>exactly</em>.'), 
      'operator' => '=', 
      'value_prefix' => '', 
      'value_suffix' => '',
    ), 
    'sw' => array(
      'name' => t('Starts with'), 
      'description' => t('!matches must <em>start with</em> the !keywords.'), 
      'operator' => 'LIKE', 
      'value_prefix' => '%', 
      'value_suffix' => '',
    ), 
    'ew' => array(
      'name' => t('Ends with'), 
      'description' => t('!matches must <em>end with</em> the !keywords.'), 
      'operator' => 'LIKE', 
      'value_prefix' => '', 
      'value_suffix' => '%',
    ), 
    'lt' => array(
      'name' => t('Less than'), 
      'description' => t('!matches must be <em>less than</em> the !keywords.'), 
      'operator' => '<', 
      'value_prefix' => '', 
      'value_suffix' => '',
    ), 
    'lte' => array(
      'name' => t('Less than or equals'), 
      'description' => t('!matches must be <em>less than or equal to</em> the !keywords.'), 
      'operator' => '<=', 
      'value_prefix' => '', 
      'value_suffix' => '',
    ), 
    'gt' => array(
      'name' => t('Greater than'), 
      'description' => t('!matches must be <em>greater than</em> the !keywords.'), 
      'operator' => '>', 
      'value_prefix' => '', 
      'value_suffix' => '',
    ), 
    'gte' => array(
      'name' => t('Greater than or equals'), 
      'description' => t('!matches must be <em>greater than or equal to</em> the !keywords.'), 
      'operator' => '>=', 
      'value_prefix' => '', 
      'value_suffix' => '',
    ), 
    'nc' => array(
      'name' => t("Doesn't contain"), 
      'description' => t("!matches <em>don't contain</em> the !keywords."), 
      'operator' => 'NOT LIKE', 
      'value_prefix' => '%', 
      'value_suffix' => '%',
    ), 
    'ncw' => array(
      'name' => t("Doesn't Contain word"), 
      'description' => t("!matches <em>don't contain</em> the !keywords as whole words."), 
      'operator' => 'NOT REGEXP', 
      'value_prefix' => '[[:<:]]', 
      'value_suffix' => '[[:>:]]',
    ), 
    'ne' => array(
      'name' => t('Not equals'), 
      'description' => t('!matches must <em>not</em> match the !keywords.'), 
      'operator' => '<>', 
      'value_prefix' => '', 
      'value_suffix' => '',
    ),
  );
}
?>

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.