You are here

ds_footnotes_ui_field.inc in Footnotes 7.2

Same filename and directory in other branches
  1. 7.3 footnotes_field/ds/ds_footnotes_ui_field.inc

Display Suite footnotes field ui file.

File

footnotes_field/ds/ds_footnotes_ui_field.inc
View source
<?php

/**
 * @file
 * Display Suite footnotes field ui file.
 */

/**
 * Renders footnotes field.
 *
 * @param array $field
 *   The field array.
 *
 * @return string
 *   The rendered HTML.
 */
function _footnotes_field_render($field) {
  $render = array(
    '#prefix' => '<div id="footnotes-all">',
    '#markup' => NULL,
    '#suffix' => '</div>',
    '#attached' => array(
      'js' => array(
        array(
          'data' => drupal_get_path('module', 'footnotes_field') . '/js/footnotes_field.js',
          'type' => 'file',
        ),
      ),
      'css' => array(
        array(
          'data' => drupal_get_path('module', 'footnotes_field') . '/css/footnotes_field.css',
          'type' => 'file',
        ),
      ),
    ),
  );
  return drupal_render($render);
}

Functions

Namesort descending Description
_footnotes_field_render Renders footnotes field.