function finder_load_links in Finder 6
Same name and namespace in other branches
- 7 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 1504 - 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/build/finder/' . $finder->finder_id . '/edit'] = t('Edit');
}
// create links
$finder->links = array();
}