I am using ctools modal dialog/popup window to display some records. The default close button is working fine. How can I add a custom close button?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
As for this issue commited on November '11, you should be able to close any CTools modal window with a link that has the class "ctools-close-modal"
For example, in my modal I've got this for element to cancel and close:
$form['actions']['cancel'] = array( '#markup' => l(t('Cancel'), '#', array( 'attributes' => array( 'class' => 'ctools-close-modal' ), 'external' => TRUE ) ) );