Closed (outdated)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
11 Mar 2011 at 22:58 UTC
Updated:
20 Jul 2026 at 22:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tim.plunkettFirst crack at this. Not sure exactly what I'm doing :)
Needs a bunch of work still. But if I'm going about it the right or wrong way, I'd appreciate someone telling me so.
Comment #2
tim.plunkettOkay, here's a bit more. Also, a patch for views to use this on fields for "Customize field HTML", as a demo.
I couldn't find anything to base this on, so I made up some stuff. Passing on the #dependency and the #default_values may not be the usual way.
Comment #3
tim.plunkettOnly triggered elements get #submit callbacks. I was looking for #value_callback.
Comment #4
tim.plunkettThe texted field needed two dependencies.
Still use ctools-1089912-views-3.patch to test it.
Comment #5
dawehnerJust a short comment, wouldn't it be possible look at the parent dependency_count and add one.
Powered by Dreditor.
Comment #6
merlinofchaos commentedSeems like we should use ctools_passthrough() for this (see ctools_menu() or ctools_theme() etc)
It seems like we should just do this as a generic select + custom element. There's LOTS of things we can use this for. For example, Views has a date format selector. Pick short/long/medium/etc and custom.
I'm not sure we need a double dependency?
If the overall element is dependent upon something else, an inner dependency should stay invisible properly. Trying to merge the dependencies can only lead to crying, I think.
Comment #7
tim.plunkettThanks for all the feedback. I meant to look into ctools_passthrough, was just trying to get it to work first.
Generalizing it sounds good to me.
Comment #8
japerryDrupal 7 is no longer supported, closing.