public static function adminFormFieldLabel($field) {

        // Does the field have an alternate name?
        $name = $field['name'];

        if (!empty($field['alternate_form_name'])) {
            $name = $field['alternate_form_name'];
        } 

        if ($name == "id") return "ID";

        $html = str_replace("_", " ", $name);
        $html = ucwords($html);
        return $html;
    }
public static function adminFormFieldLabel($field) {

        // Does the field have an alternate name?
        $name = $field['name'];

        if (!empty($field['alternate_form_name'])) {
            $name = $field['alternate_form_name'];
        } 

        if ($name == "id") return "ID";

        $html = str_replace("_", " ", $name);
        $html = ucwords($html);
        return $html;
    }
public static function adminFormFieldLabel ( $ field ) { // Does the field have an alternate name? $ name = $ field [ 'name' ] ; if ( ! empty ( $ field [ 'alternate_form_name' ] ) ) { $ name = $ field [ 'alternate_form_name' ] ; } if ( $ name == "id" ) return "ID" ; $ html = str_replace ( "_" , " " , $ name ) ; $ html = ucwords ( $ html ) ; return $ html ; }
Transform the field name into a format suitable for a form label

@param  array  $field   Form field array from the model
@return string
Transform the field name into a format suitable for a form label