function _modernizr_get_desc in Modernizr 7.3
Same name and namespace in other branches
- 8 modernizr.module \_modernizr_get_desc()
Helper function for hook_modernizr_info(). Returns a Modernizr argument's description.
2 calls to _modernizr_get_desc()
- modernizr_generate_url in ./
modernizr.admin.inc - Generates new Modernizr URL for admin interface Callback for 'admin/config/development/modernizr'.
- _modernizr_api_list_clean in ./
modernizr.module - Cleans up the array of tests to be unified.
File
- ./
modernizr.module, line 600 - Main module file for Modernizr
Code
function _modernizr_get_desc($arg) {
$data = _modernizr_get_arg_info($arg, 'desc');
// If we can't find a description, just admit it.
return $data ? $data : '<em>' . t('No description available.') . '</em>';
}