You are here

function data_node_render_placeholder_link in Data 6

Render a placeholder when there are no active nodes that can be replaced via AJAX.

1 call to data_node_render_placeholder_link()
data_node_views_handler_field_add_remove::render in data_node/views/data_node_views_handler_field_add_remove.inc

File

data_node/data_node.module, line 418
Hooks and API functions for Data Node module.

Code

function data_node_render_placeholder_link($table, $id) {
  drupal_add_css(drupal_get_path('module', 'data_node') . '/data_node.css');
  drupal_add_js(drupal_get_path('module', 'data_node') . '/data_node.js');
  $table_name = $table
    ->get('name');
  return "<span class='data-node-placeholder data_node_link-{$table_name}-{$id}-0'></span>";
}