Hi,

I've been trying to implement a patch for a Module called "Views Table Highlighter" to make it function on D7, I was receiving the following error message when accessing it in Views

ResponseText:
Fatal error: Call to undefined function ctools_process_dependency() in /home/******/domains/******/public_html/includes/form.inc on line 1723

So I tried removing the following code:
'#process' => array('ctools_process_dependency'),

And the module became partially functional, I was wondering if rather than removing this line, if there is a simple edit required to make it functional on Drupal 7?

Any comments would be greatly appreciated

Comments

merlinofchaos’s picture

Status: Active » Fixed

Those #process commands should all be gone. CTools' dependency system now uses hook_element_info_alter() to add itself to form elements that it can hide. Just removing it should be sufficient unless it's an unusual element.

stunch’s picture

Thanks for the reply,

The problem I seem to have with removing the whole line is that all the fields on the node are giving the results "Array" instead of the actual values:

eg:

$field_field_date1 == "array"
$field_field_depart == "array"
$field_field_itemnumber == "array"
$field_field_persons == "array"
$field_field_qty == "array"
$field_field_req == "array"

Which prevents me from assigning a php code to the relevant fields.

Rather than removing the whole line, is there an alternative piece of code that will still make reference to ctools without #process?

stunch’s picture

Status: Fixed » Active
merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

I'm sorry, I'm not following. I'm not sure how you get to #process to some variable names being arrays?

esmerel’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)