function data_node_block_view

cis7 data_node.module data_node_block_view($delta)

Implements hook_block_view().

File

sites/all/modules/local_contrib/data/data_node/data_node.module, line 51
Hooks and API functions for Data Node module.

Code

function data_node_block_view($delta) {
  if (user_access('manage data relations') && $table = data_get_table($delta)) {
    // Grab the node type name
    $meta = $table->get('meta');
    $names = node_type_get_names();
    $type_name = check_plain($names[$meta['data_node']['content_type']]);

    return array(
      'subject' => t('Active !type', array('!type' => $type_name)),
      'content' => drupal_get_form('data_node_active_form', $table),
    );
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.