This is the base CodIt module that contains all the un-alterable code for a site. Consider it a framework or an environment. It must be paired with Codit: Local which contains all the site-by-site customized code and templates.
Dependency: Codit: Local
The Codit module's basic premise is that it is easier for developers to push code changes than it is to push database changes. So the entire Codit framework is built to support developers using code rather than admin settings. Codit: Local becomes the place where all site specific customizations that are too small to warrant their own module can live and be easily found.
Why two separate modules (Codit and Codit: Local)?
The Codit environment is broken into two separate modules so that the base module can reside in sites/all or sites/default (or be used as a git submodule) and remain unaltered. Codit: Local on the other hand can reside in the directory of the site and is intended to be altered specifically for each site.
Codit README file
Codit Based Modules
Currently Codit has the following related modules:
- Codit: Blocks - Allows the easy yet powerful creation of blocks, block tpls and block callback functions to do the heavy lifting and keep the heavy php logic out of the tpl.
- Codit: Crons - Allows the easy yet powerful creation of cron jobs built on safer queue processing . Also support for Elysia Cron.
Developer Friendly Code Recepticles
- An external javascript file that is separate from the theme, ready for your custom JS.
- PHP functions added to a Codit: Local inc will be available throughout Drupal
- Local Hooks - register any site specific hooks without needing to build a new module for them.
Friendly Functions for Coders
There are a few functions designed to help coders safely do their work.
- Template Tracers - place html comments if the user has the proper permissions, that reveal where the template begins, ends and resides. This is especially useful for multi-sites and multi-dev sites.
- codit_debug() // Debug Helper - Set up a specific query parameter to output any array, object or value you need if the user has the proper permissions. Extremely useful for debugging something on production server.
- codit_memorytracker() // PHP Memory and Error Log Writer - Set a message in the php error log to keep track of memory or other messages. This is very useful when running heavy processes that may need to be killed off if they prove to be too intensive. It is also useful for keeping tabs on processes that run on cron when no information is sent to the screen for a human to see.
- codit_columnize() // Column Output - Easily output lists or divs that break a long collection of items into evenly ballanced columns that can read down, or across. Classes support css treatment for specific columns or rows. (example: a visual gap at row 6)
- codit_first_last_class() //First Middle and Last Classes - easy output of these classes for any set of items that can be looped through.
- codit_build_menu_list() - Generate a column list from a menu
- codit_sanitize_boolean() // Boolean Sanitization and Transformation - Easily convert a numeric boolean to a string boolean and many other transformations.
- codit_menu_or_array_as_select_list() // Generate a select list for a form.
Similar Projects and how they differ.
Codit and Codit: Local:To my knowledge there are no similarities to other existing modules.
Project information
- Module categories: Developer Tools
- Created by swirt on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 7.x-1.x-dev updated 27 Oct 2014 at 04:18 UTC