The Object Oriented Programming (OOPs) is a most powerful programming concept. The PHP will support OOPs, using the OOPs concept we can simplify actual normal code writing. The below is the slides of Object Oriented Programming basic concepts used in PHP.
In Drupal core the function drupal_add_css() help us to achieve adding CSS for a specific pages. The CTools modal popup will not support core drupal_add_css() functions. We have to use CTools functions for adding CSS files to modal window. The function ctools_add_css() will help to adding CSS files into modal popup windows. The function accepts filename, Module name and path for adding the CSS file.
In Drupal core the function drupal_add_js() help us to achieve adding JS for a specific pages. The CTools modal popup will not support core drupal_add_js() functions. We have to use CTools functions for adding JS files to modal window. The function ctools_add_js() will help to adding JS files into modal popup windows. The function accepts filename, Module name and path for adding the JS file.
The CTools not supporting normal l() function of Drupal, we need to use its own function for creating links and buttons. The below example will demonstrate about creating Image link button with an example. The function ctools_modal_image_button() used for creating image button by CTools.
The CTools will not support l() function of Drupal core. It will support its own Links. The function ctools_ajax_text_button() we can create links. The below example will demonstrate about creating a close button for the current modal window.
The CTools plugin will not open with normal buttons and links. To open a page or form via CTools we need to use ctools buttons(ctools_ajax_text_button()). This ctools_ajax_text_button will create a link that contains the base class that help to pop up the pages.
The CTools is the plugin that helps to achieve popup content in Drupal. Not only the content and pages we can render forms in CTools. The below is the example will demonstrate about create a form in CTools modal popup window.
The CTools module helps us to implement popup functionality in Drupal. Using CTools modal popup we can create Custom pages, forms, blocks into popups. The below example will demonstrate creating simple Modal popup page with sample code.
The Autocomplete field will suggest the information while user typing initial values. Inform text field fields we can able to change as autocomplete field instead of the normal text field. The below is the example text file into a autocomplete field in Drupal 6.