Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8663501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:59:56+00:00 2026-06-12T16:59:56+00:00

Ok so I have created a drupal module that retrieves data stored in a

  • 0

Ok so I have created a drupal module that retrieves data stored in a database. The field in question contains html code for its value. I want to take that html code and have it utilized for what its value is in drupal. So if it has a list in the code I want it to display the list so on and so forth.

Here is my code for my module.

<?php

/**
* @file
*/

/**
 * Implements hook_views_data()
 */
function jobs_views_data() {
  $data['Jobs']['table']['group'] = t('Jobs');
  $data['Jobs']['table']['base'] = array(
    'field' => 'JobID',
    'title' => t('Jobs'),
    'help' => t('This table shows a list of all jobs.'),
    'database' => 'MyDatabase'
  );


  $data['Jobs']['JobID'] = array(
      'title' => t('Job ID'),
      'help' => t('A unique job id'),
      'field' => array(
      'handler' => 'views_handler_field_numeric',
      'click sortable' => TRUE,
    ),
      'argument' => array(
      'handler' => 'views_handler_argument_numeric',
    ),
      'filter' => array(
      'handler' => 'views_handler_filter_numeric',
    ),
      'sort' => array(
      'handler' => 'views_handler_sort',
    ),
  );

  $data['Jobs']['Active'] = array(
      'title' => t('Active'),
      'help' => t('A field representing whether or not a job is active.'),
      'field' => array(
      'handler' => 'views_handler_field_numeric',
      'click sortable' => TRUE,
    ),
      'argument' => array(
      'handler' => 'views_handler_argument_numeric',
    ),
      'filter' => array(
      'handler' => 'views_handler_filter_numeric',
    ),
      'sort' => array(
      'handler' => 'views_handler_sort',
    ),
  );

  $data['Jobs']['DivisionID'] = array(
      'title' => t('Division ID'),
      'help' => t('A unique division id associated with a job.'),
      'field' => array(
      'handler' => 'views_handler_field_numeric',
      'click sortable' => TRUE,
    ),
      'argument' => array(
      'handler' => 'views_handler_argument_numeric',
    ),
      'filter' => array(
      'handler' => 'views_handler_filter_numeric',
    ),
      'sort' => array(
      'handler' => 'views_handler_sort',
    ),
  );

  $data['Jobs']['JobTitle'] = array(
      'title' => t('Job Title'),
      'help' => t('Job title'),
      'field' => array(
      'click sortable' => TRUE,
    ),
      'sort' => array(
      'handler' => 'views_handler_sort',
    ),
  );


  $data['Jobs']['JobHTML'] = array(
      'title' => t('Job HTML'),
      'help' => t('Job HTML.'),
      'field' => array(
        'click sortable' => TRUE,
    ),
      'sort' => array(
      'handler' => 'views_handler_sort',
    ),
  );


  return $data;
}

So as you can see that last field there JobHTML needs a handler for the field. I have tried setting it to ‘handler’ => ‘views_handler_field_markup’. Oddly enough it did seem to lay the html out correctly as it should, but then it left the HTML code inside of the content.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:59:57+00:00Added an answer on June 12, 2026 at 4:59 pm

    I have finally solved this problem after months here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a few custom tables in my Drupal database that were created manually.
I have created a module that works on a vanilla installation of Drupal but
I have created a drupal module which displays some reporting data. I would like
I have a custom module in Drupal that outputs a serialized dump of data.
I'm currently developing a module for Drupal 6, in which I have created a
Background: In Drupal 7, I have created a form with CCK (aka the Field
I have a Drupal 7 module that creates a custom node type. It's working,
I'm trying to create a gift wrapping module for Drupal commerce. I have created
A have a view created with Drupal's Views module, and have given it a
So I have created a custom module for Drupal 6.x and it works as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.