finder_ajax

  1. finder
    1. 7.x-1.x
Versions
7.x-1.x finder_ajax($finder_id, $path)

Menu callback; get finder ajax output.

Parameters

$finder_id The finder ID.

$path URL encoded path substitute.

Return value

Finder ajax output.

Code

./finder.module, line 634

<?php
function finder_ajax($finder_id, $path) {
  if ($finder_id) {
    $finder = finder_load($finder_id);
    if ($finder) {
      // fix the path for any scripts that might call $_GET['q']
      $_GET['q'] = urldecode($path);
      // force the json'd finder output to hide_args
      $finder->settings['advanced']['hide_args'] = 1;
      //D6 drupal_json(array('status' => TRUE, 'data' => finder_view($finder, 'ajax')));
      return finder_view($finder, 'ajax');
      exit;
    }
  }
  //D6 drupal_json(array('data' => ''));
  return '';
  exit;
}
?>

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.