You are here

function references_dialog_link in References dialog 7

Attach necessary info to a link definition.

3 calls to references_dialog_link()
references_dialog_build_element in ./references_dialog.module
references_dialog_get_views_search_links in ./references_dialog.module
Get all views search links for an instance. This function should be used by references dialog widgets that uses views for it's search functionality.
references_dialog_process_widget in ./references_dialog.module
Add our references dialog fields to the existing element

File

./references_dialog.module, line 475
This the main module file.

Code

function references_dialog_link($link) {
  if (!isset($link['attributes']['class']) || !in_array('references-dialog-activate', $link['attributes']['class'])) {
    $link['attributes']['class'][] = 'references-dialog-activate';
  }
  return $link;
}