An attempt to add helper functions, depedencies, and modularity to frontend Drupal code.
Adds the following function (backend):
drupal_add_js_dependency(stack, name) - ensures a dependency is in effect before pages load to sidestep race conditions.
Adds the following function sets (frontend):
Dependency functions:
Drupal.modules.init_dependencies() - initialises all dependencies that were present in Drupal.settings on load.
Drupal.modules.init_dependency(stack, fallback = true) - create a dependency stack, optionally making it resolve after page load. May switch to a timeout in future.
Drupal.modules.add_dependency(stack, name) - adds a dependency to a dependency stack, which must be marked as resolved before the stack marks as resolved
Drupal.modules.resolve_dependencyname - resolves a named dependency on all stacks.
Drupal.modules.dependency_status(stack) - checks the status of a dependency stack
Drupal.modules.get_dependants(name) - lists stacks that depend on the named module.
The Configuration builder module provides a Form Builder based, drag and drop interface for building custom, exportable, configuration pages.
This can be used to create a unified settings form bringing important settings (Site name, Google analytics account, etc) into one easy to manage page, or for creating custom settings forms as needed.
Features
Drag and Drop form builder interface.
Configuration variables provided as tokens.
Provides a block per configuration page.
Set page access by:
User permission.
User role(s).
Exportable as:
Drupal API hooks via:
Configuration builder export interface.
CTools exportable via:
Configuration builder export interface.
CTools Bulk Export module.
Features module.
Integrates with:
Drupal Contextual links module:
Adds a hover link for quick editing configuration pages.
Adds contextual link tokens for quick editing variables.
Variable module:
Adds Variable element for Form Builder for any declared variables.
Declares all created variables with hook_variable_info().