The Chaos Tool Suite is a module containing a set of APIs and tools to improve the developer experience.

learn more… | top users | synonyms

0
votes
1answer
20 views

Views 3.8 hook_views_default_views() stopped working

I have a default view made using the views hook hook_views_default_views(). It was working right and when I updated to Views 7.x-3.8 it stopped working. It is not shown in structure -> views, the ...
1
vote
1answer
18 views

Updates: keep panels pages, views, etc.. updated via hook_update_n?

im having a little trouble keeping a project update. I track the code via a private git repo, and for each update I follow those steps (first on stagin, then on production): update all the 3rd pars ...
-1
votes
0answers
27 views

How to save a new endpoint for Services in Drupal 7

I am using Services in Drupal 7 Trying to create a new resource and endpoint. I have followed the documentation here: https://www.drupal.org/node/783460 However the documentation isn't great at ...
0
votes
0answers
15 views

form_alter hook in a ctools content-type plugin not called

I'm writing a ctools content-type plugin to use it as a panels pane. In my plugin code I try to use the form_alter hook at render for the login_form (not for the edit forms). But the hook seems not to ...
0
votes
0answers
11 views

Missing group audience field(og) from node add form by panel

I have 2 content types, and they are Organization(group) and Contact(group content) From Contact, I add the group audience field and bundle with Organization. When I use the node/add/contact from ...
0
votes
1answer
59 views

Node Form Not submitting on ctool modal

I have a custom form, on submission of which I am calling ctools modal with a node form(content type: turn). Code for Custom Form. function _my_module_name_files_listing_form($form, ...
0
votes
2answers
35 views

AJAX error when ctools_modal_command_dismiss() is called

So I'm having a problem with dismissing a Ctools modal within a form submit's callback function. Once I have processed any submit data, I'd like to dismiss the modal without redirecting the page (easy ...
0
votes
0answers
9 views

Ctools wizard function is only sending one command “modal_dismiss” after final form, I want to send html command as well

I have a multistep form in ctools wizard and display in ctools modal. It is working flawlessly except one thing. After the wizard finishes I want to send an image uploaded by wizard back to main page, ...
0
votes
0answers
28 views

modal pop after a user click 3 times in any links on a site

I am trying to make pop a modal window after a user as click on 3 different links on a site. I am not too sure how to achieve it. I am using this JS script to track the click window.onload = ...
0
votes
0answers
10 views

How to set default permissions using ctools

I've done this before with features and have used ctools a bit for other module's defaults but can't seem to find the right hook for user permissions. This is what I'm trying to do in my code: ...
1
vote
0answers
22 views

How to load all contexts of a Panels page?

The Panels Ajax Tab module is loading panes (minipanel pane) on panel pages via Ajax: $pane = panels_mini_block_view($name); echo $pane['content']; This will get the contexts defined on the ...
0
votes
0answers
12 views

Permission problem in Ctools

I have a 3 pages created with Page Manager (part of Ctools): item/%nid redirects to item/%nid/tab1 or item/%nid/tab2 depending on content type of node, which ID is provided via argument. It has two ...
0
votes
0answers
24 views

How to create different local tab titles for each panel variant?

I have a site with different content types, displayed using local tabs defined by panels pages. The problem is that I need to have different titles per default local tab, depending on what content ...
2
votes
1answer
32 views

How to make a style plugin available only for certain types of panes?

I'm trying to simplify the admin UX on a site with a few different custom style plugins. I have plugins A, B, C, and D. I want plugins A and B only to be able to be applied to menu block panes. I ...
0
votes
0answers
50 views

How to show a confirmation form in a modal to delete one entity whilst adding/editing a different entity/node?

I have entity 1 (E1), the main entity, in which entity 2 (E2) can be used/edited/deleted. I would like to be able to show a confirm_form after choosing to delete E2 in a modal whilst creating/editing ...
0
votes
1answer
21 views

How to render ctools_custom_content_type_edit_form with ctools_modal_form_wrapper()

I have a scenario where I would like to reload/re-render the ctools_custom_content_type_edit_form after closing another ctools modal. To do so, I've bound an ajax object to the .close element within ...
0
votes
0answers
39 views

Using “Panels” Page display layout in a modal pop-up window (modal with Ctools)

I am using Ctools for modal forms on a node content type, specially on node edit form; it's working perfectly, anywhere on the site. The problem is that the Panel page display layout is not applied ...
0
votes
2answers
26 views

How to change category for Panels IPE

How would I change the category from "Fielded panes" in Panels IPE to something else? I can accomplish this through the following code: function ...
0
votes
1answer
283 views

CTools: Ajax modal form window not loading

I already had success in ajax loading a form into a modal window with Ctools but now it fails and I do not why. Maybe someone can help me?! The problem: I create a link on a page which should open a ...
0
votes
1answer
29 views

Override ctools function

I'm using the Multi-Step Registration module to have a wizard in my user registration. The wizard works fine. You can also select a wizard trail to see in which step you are. As you can see it ...
0
votes
0answers
12 views

How to get string transformations for views arguments?

I'm using Drupal 6, and am setting up arguments on a string field. I'd like to be able to provide links to the 'argumented' pages based on the strings - but don't see how I would easily do that. ...
0
votes
0answers
17 views

CTools Issue: Invalid Object Name when adding context to Panel

Have some issue when trying to add context to a Panel. Have tried: Disabling custom modules Switching to default Bartik theme Looking for updated module Can't seem to figure this one out. Using ...
0
votes
0answers
6 views

How to select multiple panes for Page Manager Title From Pane

I have one variant that is being used for multiple pages on the site. The Pages have everything in common except a particular pane, which is filled by blocks with different visibility settings, such ...
2
votes
1answer
103 views

Drupal 7 - HTTP/AJAX/JSON responses at same URL with Accept Header (like D8)

Drupal 8 has this new amazing in-built functionality for handling requests from browsers and via AJAX at the same URL using the Accept header, which makes the CTools way of adding "nojs" to URLs, and ...
1
vote
0answers
20 views

How to get Page Manager to react on path alias before node/%node

I have a CTools Page Manager Panels Variant that I want to apply to a whole load of different content, based on paths. Basically I want this Page Manager Page to handle all paths matching: foo/*/* ...
0
votes
2answers
89 views

CSS fix for stacked gear icons in Drupal Panels? [closed]

When using the Panels module within Drupal, I often end up with multiple gear icons stacked on top of each other, inaccessible to the Drupal admin. For example, take a Panels page with this ...
1
vote
1answer
43 views

How can I alter ctools access plugin expectancies?

How can I tell a access plugin to expect a different argument plugin? Surely there isn't a one to one ratio. So I'm working with panels. I've written a custom argument plugin that will take the node ...
0
votes
0answers
13 views

Retrieveing config for a custom ctools content type

I've created a custom ctools content type to make a custom pane for my node/%nid panel. The content type has an edit form with some configuration options for the pane, that I would like to access from ...
2
votes
1answer
69 views

How do I pass the nid of the current node to the first step multistep modal form?

I am using the ctools plumbing to create a nodal form. This is what the relevant part of my code now looks like: /** * Implements hook_entity_view_alter(). */ function ...
0
votes
1answer
16 views

How do I include a class in a link inserted in an entitiy's link area?

I want to insert a link to a ctools modal popup with a custom style (class) into the link area at the bottom of an entity (e.g. a node). I do this using hook_entity_view_alter. This is how the ...
1
vote
0answers
269 views

Using ajax with pager in ctools modal window

Continuing my work from here, I have a modal window that displays a text field and submit button. When the form is submitted, a Solr search is run using ajax, and the first ten results are displayed ...
0
votes
0answers
44 views

Issue adding Content Pane to View

I am at a loss. I have run into a problem while trying to add a View Content Pane to any view and I can't find any documented case of this happening to anyone else. I created a simple view. Nothing ...
0
votes
1answer
51 views

CTools modal with webform unable to close

I'm using the CTools modal with a webform, the form comes in via ajax. When a user is logged in, all works normally. If an anonymous user clicks on the link for the modal, I'm seeing the following ...
0
votes
0answers
32 views

Ctools link in form element

This is little complex piece of code, i will like to know if i am doing right! only thing that is not working when i click on link it doesn't open modal /** * Implements hook_menu(). */ function ...
0
votes
1answer
87 views

Call to undefined function ctools_ajax_text_button()

What I need is a link to click and open a form in a modal. Call to undefined function ctools_ajax_text_button() in ctools\includes\modal.inc on line 184 This is how I'm calling the function in ...
0
votes
2answers
12 views

How to clear export_module for a view

I am unable to export a particular view via Features UI because this view is supposedly default by a different module. In features.ctools.inc line 164 - 172: // If this object is provided as a ...
0
votes
1answer
193 views

Targeting text field on node edit form from ctools modal

I have a multivalue image field, and using FileField Sources, I've added a link that displays a ctools modal window that allows a user to search Apache Solr for images. The results are displayed in a ...
0
votes
1answer
305 views

How to use ctools modal to popup some fields of a node on node view?

I want when a user is viewing a node, some of the node fields will be shown as a popup (without any buttons). How can I do it? Thank You!
0
votes
1answer
40 views

Error 'Cannot redeclare ctools_menu_add_tab()' after migrating website

After our hosting provider has migrated our website to a new server this fatal error occurs when accessing the site: Fatal error: Cannot redeclare ctools_menu_add_tab() (previously declared in ...
0
votes
0answers
39 views

Adding panels to a ctools multistep frorm

I'm trying to build a ctools multistep form, and for most of the pages, the simple form api works just fine. However, within one of the steps i'd really like to show something a bit more detailed: ...
0
votes
0answers
47 views

Modal form login error using two tabs

I am using modal form for login. There is a blocker issue that I am facing. Open two tabs in single browser. Login in first tab. Move to second tab and click on login. It create some AJAX error. ...
0
votes
1answer
34 views

Ajax ignoring my default_value

I have a drupal form that contains a select box. Next to the select box is a link that pops a ctools modal up with an inner form that adds a value to the database table that drives the original select ...
0
votes
1answer
27 views

mvf field is not working with view dependant filter

mvf field is not working with view dependant filter. I created a mvf field . I want its view filter with view dependent filter module . Its filter is working fine when the field is not in dependant ...
0
votes
0answers
220 views

Modal Multi-Page Form Validation/Callbacks

I have the following multistep form. I would like to validate the email address to confirm that it is not registered in my database. If it's not I would want to register the user (my server doesn't ...
0
votes
0answers
89 views

WSOD on 7.20 after failed attempt to update web form, media, ctools, context modules

Attempted to run security updates for those modules. Update failed. Can't login. WSOD. (Hosted on Bluehost shared server) Error Message from log: PHP Fatal error: Call to undefined function ...
0
votes
0answers
95 views

How to use token context in panels?

In panels page manager there is a token context available. But when adding such token context i only see an empty settings page. How to use it?
0
votes
0answers
58 views

How to integrate ctool Modal with VBO

I have a big problem with Views Bulk Operations and Ctools. I defined a new button in VBO such as: Print and displays it on Content View List. Into the Content View List, I check any rows into View ...
0
votes
1answer
285 views

Why is redirect after login not working?

I use Ctools Modal to show the login form to users in an overlay. If a user enters right data then he is logged in and the page is refreshed. The code: function login_overlay_menu() { ...
0
votes
2answers
142 views

hook_context_default_contexts() in Drupal 7?

I used Bulk Export to export all my Context definitions into my module in a function that implements hook_context_default_contexts(). However, my default context definitions do not appear if I delete ...
0
votes
0answers
22 views

Add multiple items text field in ctools content type plugin settings form

I Have a form in a ctools content type plugin and I want to add a textfield that allows the user to add multiple items. Can anyone offer advice on achieving this?