Download & Extend

CTools Auto-modal

Provides automatic modal support for any hook_menu() paths that have 'modal' => TRUE defined. This makes it easy to add optional modal support in any contrib module and helps reduce the burden on module developers to support modals.

Usage

<?php
function mymodule_menu() {
 
$items['mymodule/form'] = array(
   
'page callback' => 'drupal_get_form',
   
'page arguments' => array('mymodule_form'),
   
'access arguments' => array('administer mymodule'),
   
'modal' => TRUE, // This line is where the magic happens.
 
);
}
?>

That's it!

Requirements

Known issues

  • None as of yet.

Similar modules

  • Dialog - Still requires significant coding to support. For example, the entire Filter tips dialog module can be replaced by just using $items['filter/tips']['modal'] = TRUE in hook_menu_alter().
  • Automodal

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.1 tar.gz (8.63 KB) | zip (9.17 KB) 2012-Jan-22 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (8.64 KB) | zip (9.18 KB) 2012-Jan-23 Notes

Project Information


Maintainers for CTools Auto-modal

  • Dave Reid - 8 commits
    last: 18 weeks ago, first: 39 weeks ago

Issues for CTools Auto-modal

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports