function arrange_fields_add_arrange_css_js in Arrange Fields 7
Same name and namespace in other branches
- 6 arrange_fields.module \arrange_fields_add_arrange_css_js()
Meant to be called by the display_form functions, this will make sure the necessary module inc's are loaded, and the required js and css files are added for the actual arranging of fields.
4 calls to arrange_fields_add_arrange_css_js()
- arrange_fields_display_form in ./
arrange_fields.module - This function will display a form and let us arrange its fields. It is designed to work with Drupal's content types (not Webform or programmer-designed forms).
- arrange_fields_display_otherform in ./
arrange_fields.module - Similar function as arrange_fields_display_form, but this is specifically for other, more generic forms on the system. For example, user_register, or custom forms which a developer has written.
- arrange_fields_display_webform in ./
arrange_fields.module - Similar function as arrange_fields_display_form, but this is specifically for webforms (with the webform module).
- arrange_fields_popup_close_window in ./
arrange_fields.module - After the popup_edit_field has been submitted, the user comes to this page, which simply instructs them to click a button which will make the opener page save itself. This is necessary, or the changes the user made in the popup will not be reflected…
File
- ./
arrange_fields.module, line 557
Code
function arrange_fields_add_arrange_css_js() {
module_load_include('inc', 'node', 'node.pages');
drupal_add_library('system', 'ui.draggable');
drupal_add_library('system', 'ui.dialog');
drupal_add_library('system', 'ui.resizable');
drupal_add_js(drupal_get_path("module", "arrange_fields") . "/js/arrange_fields_node_edit.js");
// must be included first.
drupal_add_js(drupal_get_path("module", "arrange_fields") . "/js/arrange_fields.js");
drupal_add_js(drupal_get_path("module", "arrange_fields") . "/js/arrange_fields_dialog.js");
drupal_add_css(drupal_get_path("module", "arrange_fields") . "/css/arrange_fields.css");
}