wordpress/wp-content/plugins/kt-tinymce-color-grid/index.php
/**
         * Add a row from the palette to the color map
         * @since 1.7
         * @param array $map passed by reference
         * @param array $palette passed by reference
         * @param int $row
         */
Add a row from the palette to the color map
@since 1.7
@param array $map passed by reference
@param array $palette passed by reference
@param int $row
Add a row from the palette to the color map @since 1 . 7 @param array $map passed by reference @param array $palette passed by reference @param int $row
protected function add_row_to_map(&$map, &$palette, $row) {
            $cols = count($palette);
            for ($col = 0; $col < $cols; $col++) {
                if ($palette[$col][$row]['color'] == 'reset') {
                    continue;
                }
                $map[] = ltrim($palette[$col][$row]['hex'], '#');
                $map[] = $palette[$col][$row]['name'];
            }
        }
protected function add_row_to_map ( & $ map , & $ palette , $ row ) { $ cols = count ( $ palette ) ; for ( $ col = 0 ; $ col < $ cols ; $ col ++ ) { if ( $ palette [ $ col ] [ $ row ] [ 'color' ] == 'reset' ) { continue ; } $ map [ ] = ltrim ( $ palette [ $ col ] [ $ row ] [ 'hex' ] , '#' ) ; $ map [ ] = $ palette [ $ col ] [ $ row ] [ 'name' ] ; } }
Add a row from the palette to the color map
 @since 1.7
 @param array $map passed by reference
 @param array $palette passed by reference
 @param int $row
Add a row from the palette to the color map @since 1 . 7 @param array $map passed by reference @param array $palette passed by reference @param int $row