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
Comment #1
merlinofchaos commentedThose #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.
Comment #2
stunch commentedThanks 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?
Comment #3
stunch commentedComment #4
merlinofchaos commentedI'm sorry, I'm not following. I'm not sure how you get to #process to some variable names being arrays?
Comment #5
esmerel commented