function _modernizr_get_desc in Modernizr 8
Same name and namespace in other branches
- 7.3 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 462 
- 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 : t('No description available.');
}