Questions tagged [drupal-ctools]

Drupal - Chaos tool suite = This suite is primarily a set of APIs and tools to improve the developer experience.

Drupal - Chaos tool suite (ctools). This suite is primarily a set of APIs and tools to improve the developer experience.

Learn more about Drupal - Chaos tool suite here (ctools).

45 questions
0
votes
1 answer

HTML / Php forms - how to save an optional, unselected drop-down as null/empty instead of an option?

I'm building forms for Drupal 6 through the cTools wizard (which is primarily php), and I have a few select boxes that are optional. I have my options set up like so: 0|Select 1|option 1 2|option 2 3|option 3 4|option 4 Or on some, like a year or…
axxint
  • 3
  • 2
0
votes
2 answers

How do you change the format of the header of a ctools modal window in Drupal?

I have a a standard ctools modal window. I am able to style the header section title text, and customize that text, but I want to change the right side of the header which has "Close window" and an X icon. Specifically, I want to use a different X…
Justin
  • 2,914
  • 5
  • 41
  • 66
0
votes
1 answer

Change drupal theme based on panels layout

I'm using panels and ctools page manager on Drupal 7 in order to create landing pages. I want to force the use of a specific theme for pages defined with a certain panels layout. I can use hook_ctools_render_alter to get layout name -…
0
votes
2 answers

What is a path from Ctools Modal to Modal Frame API

I wrote a module that uses the Ctools Modal Window to serve a form wizard. I would like to switch to using the Modal Frame API (which uses the JQuery UI Dialog as the modal). If someone has some experience making this type of switch in their code…
dkinzer
  • 32,179
  • 12
  • 66
  • 85
0
votes
1 answer

node form submit not working in ctools model

I have created a ctools model to open node form having field collection. I am trying to save form, its show error. function bayerkol_callback($ajax) { if ($ajax) { global $user; ctools_include('ajax'); ctools_include('modal'); $form_state =…
Vishal Kamal
  • 1,104
  • 2
  • 10
  • 35
0
votes
1 answer

Fatal error:problems with ctools

Fatal error: Class CToolsCssCache contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (DrupalCacheInterface::__construct) in …
0
votes
1 answer

drupal 7 prevent redirect in modal window (ctools) when submit

I have placed a form (built with entityform) into a modal (ctools modal) using jquery. Now, what happens is that when I click on the "submit" button, I get redirected to another page where I display the "success" message. I'd like to avoid the…
odissea
  • 3
  • 3
0
votes
2 answers

How to theme the ctools modal window

Does anybody know how I can theme the ctools modal window? I've tried putting the css that it comes with in my own theme to over-ride it, but that is not working for me.
dkinzer
  • 32,179
  • 12
  • 66
  • 85
0
votes
1 answer

drupal ctools multi step node form

I've built a ctools modal form with multi step like this, and I've built a ctools modal node form like this. Cool! but now I want a ctools multi-step modal node form. Yes, I could render all the fields via Form API, hang all the validation & custom…
dotist
  • 63
  • 8
0
votes
1 answer

How to load a panel variant programmatically?

I do load a panel (node_view) in a ct modal window. That works perfect so far. But now I need to load a specific variant of the panel. I was playing with the handler stuff... but didn't get, yet. How can I do this? Here's my code for loading the…
0
votes
1 answer

How to show a hidden field in a drupal form as a pop up after click submit button?

I have a drupal form and I want a make a one field as hidden and when user click on submit button that hidden field should be shown in a popup. Then user should be able to enter some value to that field and submit the form. please help me to do this…
Rohitha
  • 145
  • 1
  • 11
0
votes
1 answer

(Drupal) Unsupported operand types in /var/www/html/includes/common.inc

I have installed quicktabs module and configured it. When I try to implement it using mini-panel, it gives me an error(Please see the attachments). I have tried various methods which I found on Google and Drupal, but couldn't solve my problem. When…
user2798227
  • 853
  • 1
  • 16
  • 31
0
votes
2 answers

getting error call to undefined function webform_component_edit_form_validate in ctools popup drupal 7

I am using webform module for creating form. I required not to customize webform_component_edit_form. so I have alter webform_component_edit_form. In this form alter i add select element with #ajax property. This is working fine when i open this in…
chetan singhal
  • 948
  • 1
  • 13
  • 36
0
votes
2 answers

drupal ctools multistep wizard

i am trying to write a ctools multistep wizard, here is my wizard function; function _mymodule_adv_wizard($js=NULL, $step="step1") { $form_info = array(); $form_info["id"] = SK_ADV_WIZARD_ID; $form_info["path"] =…
eyurdakul
  • 894
  • 2
  • 12
  • 29
-1
votes
1 answer

Drupal How to add java script to ctools modal popup

I need to hide some element with some condition using jquery inside ctools modal popup in drupal after popup load. I used drupal_add_js but that not work. Any suggestion?
Chamil Sanjeewa
  • 319
  • 1
  • 4
  • 12
1 2
3