You are here

function finder_load_links in Finder 7

Same name and namespace in other branches
  1. 6 finder.module \finder_load_links()

Attach 'links' data and 'admin links' data to the finder.

Parameters

&$finder: The finder object.

1 call to finder_load_links()
finder_load_objects in ./finder.module
Load objects from the database.

File

./finder.module, line 1405
The finder module.

Code

function finder_load_links(&$finder) {

  // create admin links
  $finder->admin_links = array();
  $finder->admin_links[$finder->path] = t('View "Path"');
  if (!isset($finder->settings['programmatic']) || !$finder->settings['programmatic']) {
    $finder->admin_links['admin/structure/finder/' . $finder->finder_id . '/edit'] = t('Edit');
  }

  // create links
  $finder->links = array();
}