You are here

function webfm_links in Web File Manager 5

1 call to webfm_links()
webfm_form_alter in ./webfm.module
Implementation of hook_form_alter().

File

./webfm.module, line 734

Code

function webfm_links() {
  $form['#theme'] = 'webfm_attach_attached_form';
  $debug_link = drupal_to_js(variable_get('webfm_debug', '')) ? t('[<a href=# id="webfm-debug-link">debug</a>]') : '';
  $settings_link = t('[<a href="@link">settings...</a>]', array(
    '@link' => url("admin/settings/webfm"),
  ));
  $help_link = module_hook('help', 'page') ? t('[<a href="@link">more help...</a>]', array(
    '@link' => url("admin/help/webfm"),
  )) : '';
  $output = $debug_link . $settings_link . $help_link;
  if ($output) {
    $form['links'] = array(
      '#prefix' => '<div class="more-help-link">',
      '#suffix' => '</div>',
    );
    $form['links']['content'] = array(
      '#type' => 'markup',
      '#value' => $output,
    );
  }
  return $form;
}