You are here

function asset_widget_get_asset_form in Asset 7

Render for edit/create asset form.

1 string reference to 'asset_widget_get_asset_form'
asset_widget_get_tabs_info in modules/asset_widget/asset_widget.module
Return all possible widget tabs to render.

File

modules/asset_widget/asset_widget.module, line 570
Code for the Asset widget module.

Code

function asset_widget_get_asset_form($type) {

  // Actually tab will be build on JS side, here we could only pass additional options.
  $url_type = str_replace('_', '-', $type);
  asset_widget_set_current_command(array(
    'command' => 'assetWidgetAddAsyncTab',
    'data' => array(
      $type => $url_type,
    ),
  ));
  return array(
    '#markup' => '',
  );
}