original_string: public static function available_areas($component) {
          global $CFG;
  
          list($plugintype, $pluginname) = core_component::normalize_component($component);
  
          if ($component === 'core_grading') {
              return array();
  
          } else if ($plugintype === 'mod') {
              return plugin_callback('mod', $pluginname, 'grading', 'areas_list', null, array());
  
          } else {
              throw new coding_exception('Unsupported area location');
          }
      }
code: public static function available_areas($component) {
          global $CFG;
  
          list($plugintype, $pluginname) = core_component::normalize_component($component);
  
          if ($component === 'core_grading') {
              return array();
  
          } else if ($plugintype === 'mod') {
              return plugin_callback('mod', $pluginname, 'grading', 'areas_list', null, array());
  
          } else {
              throw new coding_exception('Unsupported area location');
          }
      }
code_tokens: public static function available_areas ( $ component ) { global $ CFG ; list ( $ plugintype , $ pluginname ) = core_component :: normalize_component ( $ component ) ; if ( $ component === 'core_grading' ) { return array ( ) ; } else if ( $ plugintype === 'mod' ) { return plugin_callback ( 'mod' , $ pluginname , 'grading' , 'areas_list' , null , array ( ) ) ; } else { throw new coding_exception ( 'Unsupported area location' ) ; } }
docstring: Returns the list of gradable areas provided by the given component
  
  This performs a callback to the library of the relevant plugin to obtain
  the list of supported areas.
  
  @param string $component normalized component name
  @return array of (string)areacode => (string)localized title of the area
docstring_tokens: Returns the list of gradable areas provided by the given component