Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I have crated a custom view and add some fields from database by these code but whenever i am using string fields and filter it gives me error "Broken/missing handler"

$data['coupons']['name'] = array(
    'title' => t('Name'),
    'help' => t('Name of coupon.'),
    'field' => array(
       'handler' => 'views_handler_field_string',
     ),
      'sort' => array(
       'handler' => 'views_handler_sort',
      ),
      'filter' => array(
        'handler' => 'views_handler_filter_string',
      ),
   );

This problem is appear whenever i am fetching string type data from database. please help me, Thanks in advanced :)

share|improve this question
What hook are you using here? – Pawel G Feb 27 at 11:50
Hello Pawel thanx for your response i am using hook_views_data(). Hook. – Lavekush Feb 27 at 12:23
There isn't any views_handler_field_string class. That is why you get that error. – kiamlaluno Mar 3 at 7:45

closed as too localized by kiamlaluno Mar 4 at 14:25

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.